Parse date from a string
a string with a date value
The date format expected
The reference date to handle ambiguity or relative dates
Optional
options: {additional parsing options
Date
Parse a date in iso format
value to convert to date
Optional
options: { additionalDigits?: 0 | 1 | 2 }Date string
Extra the "Day" of a date object and return it as a string in YYYY-MM-DD format.
Convert a date value to a string containing only the date parts Throws an exception if the input date cannot be parsed.
Date object or a parseable date string
Default value to a return if input date is null or undefined
A string containing a formatted date or the defValue
Get the current date in YYYY-MM-DD format
Convert an excel compatible serial to a Date object
Excel serial value
Date
Optional
fmt: stringGiven a string value in ISO format
string in YYYY-MM-DD foramt
convert an excel compatibitl date serial into a string date in the format YYYY-MM-DD
excel serial value
string
Convert a string value to a date {@see parse}
Optional
format: string | DateFmtEntry[]Optional
refDate: Date
Get the current date and time