Dates#
A reference document listing built-in convenience functions to support data transformation in expressions for dates.
JavaScript in expressions
You can use any JavaScript in expressions. Refer to Expressions for more information.
beginningOf(unit?: DurationUnit): Date #
Function parameters#
A valid string specifying the time unit.
endOfMonth(): Date #
extract(datePart?: DurationUnit): Number #
Function parameters#
A valid string specifying the time unit.
format(fmt: TimeFormat): String #
Function parameters#
A valid string specifying the time format. Refer to Luxon | Table of tokens for formats.
isBetween(date1: Date | DateTime, date2: Date | DateTime): Boolean #
Function parameters#
The first date in the range.
The last date in the range.
isDst(): Boolean #
isInLast(n?: Number, unit?: DurationUnit): Boolean #
Function parameters#
The number of units. For example, to check if the date is in the last nine weeks, enter 9.
A valid string specifying the time unit.
isWeekend(): Boolean #
minus(n: Number, unit?: DurationUnit): Date #
Function parameters#
The number of units. For example, to subtract nine seconds, enter 9 here.
A valid string specifying the time unit.
plus(n: Number, unit?: DurationUnit): Date #
Function parameters#
The number of units. For example, to add nine seconds, enter 9 here.
A valid string specifying the time unit.