Documentation

Date

Date formatting | processing logic.

Methods
add adds the number of date units to date
copy creates date copy
datePart gets the date part of date object
dateToStr creates new date formatting method
dayStart gets day start
equal compare two dates
getISOWeek gets the number of week by ISO (local time zone)
getUTCISOWeek gets number of week by ISO (UTC time)
isHoliday returns true if date is a holiday
monthStart gets the start of the month
strToDate creates new date parsing method
timePart gets time part of a date in seconds
toFixed adds a leading zero to a number if it's less than 10
weekStart gets the week start
yearStart gets the year start
Other
startOnMonday defines whether weeks start on Monday.
Back to top