system.date
Date Functions
The following functions give you access to test and modify dates.
📄️ *Between
Calculates the amount of time between two dates.
📄️ add*
Add or subtract an amount of time to a given date.
📄️ format
Returns the given date as a string and formatted according to a pattern.
📄️ fromMillis
Creates a date object given a millisecond value
📄️ get*
Extracts a unit of time from a date.
📄️ getDate
Creates a new Date object given a year, month and a day.
📄️ getTimezone
Returns the ID of the current timezone.
📄️ getTimezoneOffset
Returns the current timezone's offset versus UTC for a given instant, taking Daylight Savings Time into account.
📄️ getTimezoneRawOffset
Returns the current timezone offset versus UTC, not taking daylight savings into account.
📄️ isAfter
Compares two dates to see if date_1 is after date_2.
📄️ isBefore
Compares two dates to see if date_1 is before date_2.
📄️ isBetween
Compares two dates to see if a target date is between two other dates.
📄️ isDaylightTime
Checks to see if the current timezone is using daylight savings time during the date specified.
📄️ midnight
Returns a copy of a date with the hour, minute, second, and millisecond fields set to zero.
📄️ now
Returns a java.util.Date object that represents the current time according to the local system clock.
📄️ parse
Attempts to parse a string and create a Date.
📄️ setTime
Takes in a date, and returns a copy of it with the time fields set as specified.
📄️ toMillis
Converts a Date object to its millisecond value elapsed since January 1, 1970, 00:00:00 UTC (GMT)