Pick date
- 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Pick date
- Updated on 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Pick a date with a blocking dialog.
Selecting a date 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 date | initialDate |
String(date) | No | – | Initially selected date in the picker, given as a ISO 8601 format string, i.e. 2019-09-04 (hours, seconds, milliseconds and timezone are irrelevant in this case and will be disregarded). |
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 date | pickedDate |
String(date) | Picked date as an ISO 8601 format string, e.g. 2019-10-03 . |
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unknown error | unknown |
Thrown if an unknown error occurred while picking a date. |
Was this article helpful?