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