0.1.0 • Published 7 years ago

js-sdk-datetime v0.1.0

Weekly downloads
1
License
Unlicense
Repository
github
Last release
7 years ago

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.