Date Range Picker

A button showing a range of days, opening a calendar and optional presets.

View as Markdown

Installation

Usage

Composition

Presets

Pass presets to list ranges beside the calendar. A preset whose range matches value is pressed. Picking one closes the picker.

Time Zone

Pass timeZone to label and select days in that zone, such as "UTC", instead of the browser's.

Disabled

Use disabled to block days and startMonth or endMonth to limit how far the arrows go.

API Reference

It also takes disabled, startMonth, endMonth, locale, timeZone and weekStartsOn from react-day-picker. The first day picked waits for a second to end the range.