DTRP

Date Time Range Picker

A collection of date and time picker components for selecting dates, times, and ranges.

Installation
Install dependencies and import the Date Time Range Picker components.

1. Install dependencies

npm install date-fns@3.6.0 react-day-picker@9.4.3

2. Import component

import { DateTimeRangePicker } from "@/components/date-time-range-picker/date-time-range-picker"

Note: These specific versions are required to ensure UI compatibility.

Features
Key features of the date time range picker components.
  • Light and dark mode support
  • Keyboard navigation
  • Date range selection
  • Time selection
  • Preset date ranges
  • Comparison mode
  • Fully customizable
  • Accessible

Components

Calendar

A calendar component for selecting dates.

March 2025
2324252627281
2345678
9101112131415
16171819202122
23242526272829
303112345
DateInput

A component for inputting dates with separate fields.

//
TimeInput

A component for inputting time with hours, minutes, and AM/PM.

:
DateTimeInput

A component that combines date and time input.

//
:
DateRangePicker

A component for selecting a range of dates with presets.

DateTimeRangePicker

A component for selecting a range of dates and times.

Examples

Basic Date Range Picker

A simple date range picker with default settings.

Date Range Picker with Comparison

A date range picker with comparison mode enabled.

Basic Date Time Range Picker

A date time range picker for selecting dates and times.