Represents a class for working with JS dates.
(...number)
Year, month, day, hours, minutes, and seconds.
Get the last two digits of the date's year.
number
:
The last two digits of the year.
Get the abbreviated name of the month (first three letters).
string
:
The abbreviated name of the month (first 3 letters).
Get the full name of the day of the week.
string
:
The full name of the day of the week.
Get the name of the day of the week (abbreviated).
string
:
The abbreviated day of the week.
Format the date according to the provided mask.
(string
= 'Y M D'
)
The format mask (Y: full year, y: last two digits of the year, M: full month, m: abbreviated month, D: day of the month with leading zero, d: day of the month without leading zero, H: hours with leading zero, h: hours without leading zero, I: minutes with leading zero, i: minutes without leading zero, S: seconds with leading zero, s: seconds without leading zero).
string
:
The formatted date, or 'Invalid Date' if the date is not a valid Date.