Skip to main content

Date & Time input

The Date & Time input component allows the user to fill in a date and time.

Date & Time input

The following section details Date & Time input component's specific settings. For more details on the App editor, check the dedicated documentation or the App editor Quickstart:

Controls

This component can be controlled by frontend scripts using these functions:

setValue

The setValue function is meant to set or force the value of a component. This can be convenient in cases where connection is not the easiest pattern. Note that it's a bad idea to mix dynamic default value and setValue together.

setValue(id: string, value: any)

Date & Time input configuration

NameTypeConnectableTemplatableDefaultDescription
Display PresetsbooleantruefalsetrueDisplay presets to select the date for example, in 1 week, in 1 month, etc.
Min Date TimestringtruefalseThe minimum date and time that can be selected. The format is the ISO 8601 format: "yyyy-MM-ddTHH:mm:ss:SSSZ", for example "2021-11-06T23:39:30.000Z", or toISOString() from a Date
Max Date TimestringtruefalseThe maximum date and time that can be selected. The format is the ISO 8601 format: "yyyy-MM-ddTHH:mm:ss:SSSZ", for example "2021-11-06T23:39:30.000Z", or toISOString() from a Date
Output FormatstringtruefalseThe output format of the Date and time component. See date-fns format for more information.
Default Valuestringtruefalsedd.MM.yyyy HH:mmThe default value of the date and time input.

Outputs

NameTypeDescription
resultstringThe date & time input value.
validitybooleanWhether the date and time are valid.