Standard Library

Create Library

Date

Object members

nameOfDays
The names of the week days

nameOfMonths
The name of months

getFirstDateInWeek
Returns the date of monday in any given year and week

parse
Create a date from a string.

format
Format a date

getDaysInMonth
Return the number of days in the month.

getDaySuffix
Get the english suffix for dates

getISODay
Return the ISO day number of the week.

getISOWeek
Return the ISO week number of the year of a date.

getNameOfDay
Get the name of the day

getNameOfMonth
Get the name of a month

getTimezoneOffset
Get the local timezone offset from UTS in minutes.

isLeapYear
Check whether a date belongs to a leap year.

setISOWeek
Set the ISO week number of the year of a date