formatDate
Formats a date according to a pattern.Format Tokens
Examples
2024-12-15
December 15, 2024
Dec 15, 2024
12/15/2024
15 December 2024
formatTime
Formats the time portion of a date.
Examples:
14:30
2:30 PM
formatDateTime
Combines date and time formatting.
Examples:
Dec 15, 2024 2:30 PM
now
Returns the current date/time formatted.
Examples:
2024-12-15
December 15, 2024
addDays
Adds days to a date.
Examples:
2025-01-14
2024-12-08
Use case - Due dates:
daysBetween
Calculates the number of days between two dates.
Examples:
14
monthName
Returns the full name of the month.December
dayName
Returns the name of the day of the week.Sunday

