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)