You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add to [JS Date.prototype](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)`.format()` method, allow format the object date in a readable form.
7
7
Call to method with the pattern you want and will return it formated.
8
+
9
+
> Date.format is based on [String.format](https://github.com/bifuer/String.format) > "Hello {name}!".format({name:"Homer"});
10
+
8
11
[npm](https://www.npmjs.com/package/date.format)
9
12
10
13
```javascript
@@ -51,6 +54,9 @@ MIT
51
54
52
55
Añade a [Date.prototype de JS](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) el método `.format()`, permitiendo formatear el objeto date de una forma legible.
53
56
Especificamos al método el formato en el que devolverá el objeto date.
0 commit comments