Skip to content
+

Date Time

The Open UI Kit Date Time family lets users select dates, times, date-time values, date ranges, and static calendar values.

Introduction

Use Date Time components when users need to schedule events, filter by a period, or select a precise timestamp. The components provide Open UI Kit field defaults, popper spacing, and calendar styling for date and time selection.

05/28/2026 09:30

Import

import {
  DatePicker,
  DateRangePicker,
  DateTimePicker,
  StaticDatePicker,
  StaticDateTimePicker,
  TimePicker,
} from '@open-ui-kit/core';

Date and time

Use DateTimePicker when the selected value needs both a calendar date and a time. Open UI Kit formats the field as MM/DD/YYYY HH:mm by default.

05/28/2026 14:00

Selected: May 28, 2026 14:00

Date or time only

Use DatePicker for calendar-only values and TimePicker for time-only scheduling.

Date

06/15/2026

Time

16:30

Date ranges

Use DateRangePicker when users need to choose a start and end date. The range picker stores its current values as strings and exposes setter callbacks.

Start date

05/28/2026

End date

06/04/2026

Range: May 28, 2026 - June 4, 2026

Static pickers

Use static pickers when the calendar itself is the primary interaction, such as scheduling panels or dense configuration flows.

May 2026
SMTWTFS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Props

Date Time components extend the picker props and add Open UI Kit convenience props.

Component Key props Description
DateTimePicker label, value, defaultValue, onChange, textFieldStyles, popperSlotProps Selects date and time values.
DatePicker label, value, defaultValue, onChange, textFieldStyles, popperSlotProps Selects calendar dates.
TimePicker label, value, defaultValue, onChange, textFieldStyles, popperSlotProps Selects time values.
DateRangePicker startDate, endDate, setStartDate, setEndDate, textFieldProps, popoverProps Selects a date range with a custom range popover.
StaticDatePicker Static date picker props Renders an always-visible date picker.
StaticDateTimePicker Static date-time picker props Renders an always-visible date-time picker.

Accessibility

Provide a clear label or placeholder for every picker. Use surrounding form labels when the field belongs to a larger form section. For date ranges, make sure nearby text explains whether the range is inclusive and what timezone applies.

Usage guidance

  • Use date-time values for scheduled events and timestamp filters.
  • Use date-only values for deadlines, birthdays, and business dates.
  • Use time-only values for recurring daily settings.
  • Use ranges for reporting windows and filters.
  • Keep timezone expectations visible when time affects user outcomes.