date formatter
install
$ npm install --save date-formatter
example
var df = ;var s = ;console; // '2015-01-02T03:04:05.6'
format
YYYY = four-digit year
MM = two-digit month (01 = January, etc.)
DD = two-digit day of month (01 through 31)
M = one-digit month (1 = January, etc.)
D = one-digit day of month (1 through 31)
hh = two digits of hour (00 through 23)
mm = two digits of minute (00 through 59)
ss = two digits of second (00 through 59)
h = one digits of hour (0 through 23)
m = one digits of minute (0 through 59)
s = one digits of second (0 through 59)
S = one or more digits representing a decimal fraction of a second
O = time zone designator (Z or +hh:mm or -hh:mm)
test
$ npm test
license
MIT