date-time

Pretty UTC datetime: 2014-01-09 06:46:01 UTC

date-time

Pretty UTC datetime: 2014-01-09 06:46:01 UTC

$ npm install --save date-time
var dateTime = require('date-time');
 
dateTime();
//=> 2014-01-09 06:46:01 UTC 
 
dateTime(new Date(2050, 1, 2));
//=> 2050-02-01 23:00:00 UTC 

Type: date
Default: new Date()

MIT © Sindre Sorhus