imf-datetime
v1.0.0
Published
Format dates according to the Internet Message Format Date and Time specification (RFC5322)
Downloads
17
Readme
imf-datetime
Format dates according to the Internet Message Format Date and Time specification (RFC5322).
Installing
With npm:
$ npm install imf-datetime
Testing
Run mocha:
$ mocha
Use
var DateTime = require('imf-datetime');
var datetime = new DateTime('1997-11-21T15:55:06.000Z');
console.log(datetime.format()); // "Fri, 21 Nov 1997 15:55:06 +0000"