datetime-converter-nodejs
npm package that converts between normal datetime to iso datetime format.
INSTALL:
$ npm install datetime-converter-nodejs
USAGE:
simple functions
var DateTime = ;var time1 = 'Sat May 16 2015 16:30:13 GMT+0530 (IST)'var time2 = 'Sat May 16 2015 15:30:13 GMT+0530 (IST)';var isoTime1 = '2015-05-16T11:28:00.322Z';var isoTime2 = '2015-05-16T11:26:00.322Z'; console; // 3600console; // 120console; // 2015-05-16T11:00:13.000Zconsole // Sat May 16 2015 16:58:00 GMT+0530 (IST)