Date and Time
The following functions allow you to check or modify time values in expression bindings.
📄️ add*
Add or subtract an amount to a given date and time
📄️ dateArithmetic
Adds or subtracts some amount of time from a date, returning the resulting date.
📄️ dateDiff
Calculates the difference between the two dates, returning the result as a floating point value in the units specified by field
📄️ dateExtract
Returns an integer value that is the value of the specified date field within the given date.
📄️ dateFormat
Returns the given date as a string, formatted according to a pattern.
📄️ dateIsAfter
Compares two dates to see if date1 is after date2.
📄️ dateIsBefore
Compares two dates to see if date1 is before date2
📄️ dateIsBetween
Compares two dates to see if a target date is between two other dates.
📄️ dateIsDaylight
Checks to see if the current timezone is using daylight savings time during the date specified.
📄️ *Between
Calculates the amount of time between two dates
📄️ 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 depending on the scope in which it is called.
📄️ 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.
📄️ midnight
Returns a copy of a date with the hour, minute, second, and millisecond fields set to zero.
📄️ now
Returns the current time.
📄️ setTime
Takes in a date, and returns a copy of it with the time fields set as specified.
📄️ timeBetween
Checks to see if the given time is between the start and end times.
📄️ toMillis
Converts a Date object to its millisecond value elapsed since January 1, 1970, 00:00:00 UTC (GMT)