18 lines
226 B
Markdown
18 lines
226 B
Markdown
|
|
||
|
# to-iso-string
|
||
|
|
||
|
Cross-browser toISOString support.
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```js
|
||
|
var iso = require('to-iso-string');
|
||
|
var date = new Date("05 October 2011 14:48 UTC");
|
||
|
|
||
|
iso(date);
|
||
|
// "2011-10-05T14:48:00.000Z"
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|