Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

osslate/iso8601-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iso8601-convert

Convert between ISO8601 strings and Date objects

Alternative to Date.parse() with support for leap seconds. A fork of calmh/node-iso8601.

Installation

npm install iso8601-convert

Usage

var iso8601 = require('iso8601-convert')

// convert ISO 8601 date string to Date object
console.log(iso8601.toDate('2012-05-21T23:32:12.419Z'))
// convert Date object to ISO 8601 date string
console.log(iso8601.fromDate(new Date))

About

Convert between ISO8601 strings and Date objects

Resources

License

Stars

Watchers

Forks

Packages

No packages published