Pick datetime
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Pick datetime

  • Dark
    Light
  • PDF

Pick a datetime with a blocking dialog.

Selecting a datetime and confirming will trigger the first output.

Cancelling the dialog will trigger the second output.

If an error occurs, the third output is triggered.

Input arguments

Label Key Type Required? Default Description
Initial datetime initialDateTime String(date) No Initially selected datetime in the picker, given as a ISO 8601 format string, e.g. 2019-09-04T15:02:00.000Z. Timezone is taken into account, so the initial datetime is presented as local time.
Confirm button label confirmLabel String No Confirm Text label on the confirm button.
Cancel button label cancelLabel String No Cancel Text label on the cancel button
Minimum date minDate String(date) Yes Minimum date to pick from, inclusive. The user cannot pick a date before this date.
Maximum date maxDate String(date) Yes Maximum date to pick from, inclusive. The user cannot pick a date after this date.

Output arguments

Number of outputs: 3

Label Key Type Description
Picked datetime pickedDatetime String(date-time) Picked datetime as an ISO 8601 format string, including timezone data, e.g. 2019-10-03T23:05:04Z.

Events

No events.

Errors

Label Code Description
Unknown error unknown Thrown if an unknown error occurred while picking the date.
Missing required properties missingRequiredProperties Thrown if there are missing required properties.

Was this article helpful?