js-sdk-datetime
v0.1.0
Published
Simple datetime utility.
Downloads
2
Readme
js-sdk-datetime
Simple date and time utilities.
library
beginOfMonth(date)
Returns a Date
copied in the first day of the month.
endOfMonth(date)
Returns a Date
copied in the last day of the month.
date(year, month, day)
Return a Date
if year
, month
and day
.
dateNormal(year, month, day)
Returns a Date
from a month
indexed by [1, 12]
.
license
See license.md
or visit Unlicense.