Skip to main content

RQBJsonLogicDateTimeOperations

RQBJsonLogicDateTimeOperations = { dateAfter: FnDateDate; dateBefore: FnDateDate; dateBetween: FnDateDateDate; dateIn: FnDateArrayOfDates; dateNotBetween: FnDateDateDate; dateNotIn: FnDateArrayOfDates; dateNotOn: FnDateDate; dateOn: FnDateDate; dateOnOrAfter: FnDateDate; dateOnOrBefore: FnDateDate; dateRelative: (anchor: RelativeDateTimeAnchor, offset: number, unit: RelativeDateTimeUnit, dateOnly: boolean) => string; }

Defined in: types.ts:175

Properties

dateAfter

dateAfter: FnDateDate

Defined in: types.ts:177

Determines if the first date is after the second date.


dateBefore

dateBefore: FnDateDate

Defined in: types.ts:179

Determines if the first date is before the second date.


dateBetween

dateBetween: FnDateDateDate

Defined in: types.ts:181

Determines if the second date is between the first and third dates (inclusive).


dateIn

dateIn: FnDateArrayOfDates

Defined in: types.ts:183

Determines if the first date is one of the values in the array of dates.


dateNotBetween

dateNotBetween: FnDateDateDate

Defined in: types.ts:185

Determines if the second date is not between the first and third dates.


dateNotIn

dateNotIn: FnDateArrayOfDates

Defined in: types.ts:187

Determines if the first date is not one of the values in the array of dates.


dateNotOn

dateNotOn: FnDateDate

Defined in: types.ts:189

Determines if the first date is not the same as the second date.


dateOn

dateOn: FnDateDate

Defined in: types.ts:191

Determines if the first date is the same as the second date (at the level of least precision between the two).


dateOnOrAfter

dateOnOrAfter: FnDateDate

Defined in: types.ts:193

Determines if the first date is either the same as the second date or after it.


dateOnOrBefore

dateOnOrBefore: FnDateDate

Defined in: types.ts:195

Determines if the first date is either the same as the second date or before it.


dateRelative

dateRelative: (anchor: RelativeDateTimeAnchor, offset: number, unit: RelativeDateTimeUnit, dateOnly: boolean) => string

Defined in: types.ts:200

Resolves a relative date/time descriptor (anchor, offset, unit, and date-only flag) to a concrete ISO 8601 string at evaluation time ("live" semantics).

Parameters

ParameterType
anchorRelativeDateTimeAnchor
offsetnumber
unitRelativeDateTimeUnit
dateOnlyboolean

Returns

string


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.