When to use
Section titled “When to use”- Where something happens at a set moment: a scheduled notification, a planned payment, the start of a maintenance window.
When not to use
Section titled “When not to use”- When only the day matters: use DatePicker.
- When only the time matters: use TimeField.
- When a range is needed: use DateRangePicker.
Anatomy
Section titled “Anatomy”- Legend: the name of the group; a
legendin afieldset. - Date: a DatePicker with segments and a calendar button.
- Time: a TimeField with hour and minute, and optional seconds.
- Help text and error: under the group, linked to it.
Behaviour
Section titled “Behaviour”- The value exists once both parts are filled; it is
nullwhile either is empty. minDate,maxDateandisDateUnavailablelimit days only; show a time rule witherror.- On narrow screens the time part moves under the date.
- With
name, a hidden input submits the value asYYYY-MM-DDTHH:mm.
Guidelines
Section titled “Guidelines”- State the time zone in the help text.
- Keep the default part labels unless you need different ones.
Content
Section titled “Content”- The legend says what the time is for: “Send time”.
- The error says what to do: “Choose a future date and time.”
Related components
Section titled “Related components”- DatePicker: the date only.
- TimeField: the time only.
- DateRangePicker: a date range.