Skip to main content

DateTimePicker

Component to comfortably enter a date time value. The value can be entered in the configured locale and timezone. It provides the date as an ISO8601 datetime string shifted to the UTC timezone.

DateTimePickerProps

Signature:

export declare type DateTimeerProps = < | , (value: | ) => > & & & & DateTimeerTypeProps & { /** * Determines whether the input is in readonly mode. * @deprecated - Will be removed. Use instead. */ readonly?: ; /** * Earliest allowed ISOString and timestamp for validation. */ min?: | ; /** * Latest allowed ISOString and timestamp for validation. */ max?: | ; };

DateTimePickerBaseProps

extends,
NameTypeDefaultDescription
readonly?
-Determines whether the input is in readonly mode.
disabled?
-Determines whether the input is disabled.
min?
|
-Earliest allowed ISO datetime for validation.
max?
|
-Latest allowed ISO datetime for validation.
required?
-Determines whether the input is required.
name?
-Name of the control that is submitted with the form.

DateTimePickerControlledProps

NameTypeDefaultDescription
value
|
-Controlled value state of the component.
onChange
(value: | ) =>
-Handler gets called if value state has changed.

DateTimePickerUncontrolledProps

NameTypeDefaultDescription
defaultValue?
|
-Default value to initialize the component in uncontrolled mode.
onChange?
(value: | ) =>
-Handler gets called if value state has changed.
Still have questions?
Find answers in the Dynatrace Community