to-datetime
Extremely simple and small module that formats a Date instance as datetime.
$ toDatetime(); // 2016-03-20 13:37:00
Installing
npm i to-datetime --save
Usage
var toDateTime = ; // From an instancevar date = ; ; // As UTC; // From a constructor stringvar dateString = '2016-03-20 15:51:55';; // Current time as datetime; // Current time as UTC;
Running the tests
npm test