Skip to main content
The Date Generation command (Command Type: 1300) generates a single date or a list of dates in a specified format and UTC offset.

Command Type

Command Type ID: 1300

Parameters

ParameterTypeDescriptionRequired
formatstringDate format string (e.g. "yyyy-MM-dd") or "unix" for Unix timestampYes
keystringWhere to store results. Possible values: "data", "children", "local_variables"Yes
utcOffsetstringUTC offset (e.g. "+03:00" for Israel time)Yes
dateOffsetDateOffsetConfigurationShift the date by a fixed amount (e.g. -1 month)No
listConfigDateListGenerationConfigGenerate a list of dates based on a starting pointNo
output_parameter_namestringOutput parameter name for local variablesNo

DateOffsetConfiguration

FieldTypeDescriptionRequired
unitstringTime unit: "minutes", "hours", "days", "weeks", "months", "years"Yes
valuenumberAmount to shift (positive or negative)Yes

DateListGenerationConfig

FieldTypeDescriptionRequired
numberOfItemsnumberHow many dates to generateYes
incrementUnitstringTime unit: "minutes", "hours", "days", "weeks", "months", "years"Yes
incrementAmountnumberHow much to increment between each date (can be negative)Yes

Usage Examples

Generate Today’s Date

{
  "command": "date-generation",
  "params": {
    "format": "yyyy-MM-dd",
    "key": "data",
    "utcOffset": "+00:00"
  }
}

Generate Yesterday

{
  "command": "date-generation",
  "params": {
    "format": "yyyy-MM-dd",
    "key": "data",
    "utcOffset": "+03:00",
    "dateOffset": { "unit": "days", "value": -1 }
  }
}

Generate a List of 7 Daily Dates

{
  "command": "date-generation",
  "params": {
    "format": "yyyy-MM-dd",
    "key": "children",
    "utcOffset": "+00:00",
    "listConfig": {
      "numberOfItems": 7,
      "incrementUnit": "days",
      "incrementAmount": 1
    }
  }
}