Static
addDate to add days to
Number of days to add (defaults to 0)
New date with days added
Static
formatFormat date to YYYY-MM-DD
Date input to format
Formatted date string or empty string if invalid
Static
formatFormat date to YYYY-MM-DDTHH:mm:ss (ISO format, without Z)
Date input to format
Formatted datetime string
Static
formatFormat time to HH:mm:ss
Date input to format
Formatted time string or empty string if invalid
Static
isCheck if a date is in the future
Date to check
True if date is in the future
Static
isCheck if a date is in the past
Date to check
True if date is in the past
Static
isCheck if two dates fall on the same day
First date to compare
Second date to compare
True if dates are on the same day
Static
isCheck if a date is valid
Value to check
True if the value represents a valid date
Static
parseParse a date safely, fallback to null
Value to parse as date
Parsed date or null if invalid
Static
subtractSubtract days from a date
Date to subtract days from
Number of days to subtract (defaults to 0)
New date with days subtracted
Static
todayGet today's date without time
Today's date with time set to midnight
Add days to a date