Controlled Mode

By default, the DateTimePicker is in an uncontrolled state.

The DateTimePicker provides options for:

Controlling the Value

To manage the date value of the DateTimePicker:

  1. Use its value property.
  2. Handle the change event.
  3. Pass the new value through the props.

The following example demonstrates how to control the DateTimePicker value.

Example
View Source
Edit In Stackblitz  
Change Theme:

Controlling the Popup State

To manage the popup state of the DateTimePicker, set the displayed state of the component through its show property.

The following example demonstrates how to control the state of the date-time selector of the DateTimePicker upon display.

Example
View Source
Edit In Stackblitz  
Change Theme: