Skip to main content

Date node

Description

The Date node represents one or more date values, e.g. 14 July 2021

Usage

The Date node is an input, so it can be added to the segments of comparison nodes.

alt text

It can be:

Configuration

alt text
  • Parameter - select a compatible parameter to use as a placeholder value (if any have been defined in the query).
  • Date - the default value is today's date. Select it and use the calendar picker to select one or more dates.

Example

Fetch holidays that start after 14 July 2021

In full detail:

Fetch all items of the Holiday design where their Start Date attribute is greater than 14 July 2021

alt text
See JSON code
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_holidays"
},
"children": [
{
"type": "GreaterThan",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_holidaysStartDate"
}
},
{
"type": "Date",
"properties": {
"value": ["2021-07-14T00:00:00.000Z"]
}
}
]
}
]
}