Processor API - Dates and Times

You can pass date and time values for custom properties created in the Builder API.

Evaluation of Date, Time and DateTime types are done in the time zone of the project.

DateTime

Properties of type DateTime must be passed to the Processor API in the ISO 8601 format. These can be passed in UTC or an offset.

In the example below custom date time properties have been setup in a property called examples.

{
  "examples": {
    "testDateTimeUtc": "2022-07-05T23:00:00Z",
    "testDateTimeLondon": "2022-07-06T00:00:00+01:00",
    "testDateTimeNewYork": "2022-07-05T19:00:00-04:00"
  }
}

Date

Dates must be provided in the format: YYYY-MM-DD (4 digit year, 2 digit month, 2 digit day).

Date types must be values from the same time zone as the one set on the project to evaluate correctly.

In the example below a custom testDate property has been setup in a property called examples.

{
  "examples": {
    "testDate": "2022-07-05"
  }
}

Time

Times must be provided in the formats: hh:mm (2 digit 24 clock hour, 2 digit minute) or hh:mm:ss (2 digit 24 clock hour, 2 digit minute, 2 digit second).

Time types must be values from the same time zone as the one set on the project to evaluate correctly.

In the example below a custom testTime property has been setup in a property called examples.

{
  "examples": {
    "testTime": "23:00"
  }
}