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.
It can be:
-
added to these comparison nodes:
- Equals
- Greater than
- Less than
- Not Equals
-
compared against an Attribute node (of Date type)
Configuration
- 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
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"]
}
}
]
}
]
}