Parse Date Range Picker repsonse

Definately @Rahul_Zirpe

As shown in the guide, for Date Range you can refer to this sample response:

{
    "value": {
                "timestamp": "2021-09-08T00:00:00.000Z",
                "year": 2021,
                "month": 8,
                "date": 8,
                "day": "Sunday",
                "hour": 0,
                "minute": 0
            },
    "range": {
        "exists": true,
        start:
            {
                "timestamp": "2021-09-08T00:00:00.000Z",
                "year": 2021,
                "month": 8,
                "date": 8,
                "day": "Sunday",
                "hour": 0,
                "minute": 0
            },
        end:
            {
                "timestamp": "2021-09-08T00:00:00.000Z",
                "year": 2021,
                "month": 8,
                "date": 9,
                "day": "Monday",
                "hour": 0,
                "minute": 0
            }
    }
}

You can use following code snippet to access values from the response:

  • Start Date: {{{variables.variable_name.range.start.date}}}
  • End Date: {{{variables.variable_name.range.end.date}}}

Please feel free to comment down below if you face any issue.

1 Like