JSON format for date and time pickers

Actions returning data for date and time pickers must return a variable with the data in the following JSON format.

For example:

context.timeslots =  
   {              "duration": 900,
                  "identifier": "FC4C7EC2-F6DE-45C2-B104-BE06784483CD",
                  "startTime": "2019-05-01T10:30Z"
   {              "duration": 900,
                  "identifier": "FC4C7EC2-F6DE-45C2-B104-BE06784483C6",
                  "startTime": "2019-03-29T09:10+0000"
  • duration is the duration of the event in seconds.
  • identifier is a unique identifier for use by the bot if required.
  • startTime is a date and time in the ISO 8601 date time format (YYYY-MM-DDThh:mm:ss.sZ). Some examples of valid date times are:
    • 2019-05-01T09:10+0000
    • 2019-05-01T09:10Z
    • 2019-05-01T09:10+00:00