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
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.