Skip to content
+

Date Time Range Field

The Date Time Range Field lets the user select a range of dates with an explicit starting and ending time with the keyboard.

Basic usage

You can render your Date Time Range Field with either one input using SingleInputDateTimeRangeField or two inputs using MultiInputDateTimeRangeField as show below.

MM/DD/YYYY hh:mm aa

MM/DD/YYYY hh:mm aa
MM/DD/YYYY hh:mm aaMM/DD/YYYY hh:mm aa
Press Enter to start editing

Uncontrolled vs. controlled value

The value of the component can be uncontrolled or controlled.

04/17/2022 03:30 PM04/21/2022 06:30 PM
04/17/2022 03:30 PM04/21/2022 06:30 PM
Press Enter to start editing

Localization

See the Date format and localization and Translated components documentation pages for more details.

Validation

See the Validation documentation page for more details.

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.