DatePicker
Select dates, weeks, months, quarters, or years from a calendar popup.
When to Use
- For selecting a single date or date range
- When you need date input with calendar UI
- For filtering or scheduling by date
Import
Examples
Basic
Date Range
Month & Year Picker
With Time
Disabled
API
DatePickerProps
value—Date— Selected date (controlled)defaultValue—Date— Default dateonChange—(date: Date, dateString: string) => void— Change handlerpicker—"date" | "week" | "month" | "quarter" | "year"— Picker type (default:"date")format—string— Display format (default:"YYYY-MM-DD")showTime—boolean | TimePickerProps— Include time selectiondisabled—boolean— Disable the pickerdisabledDate—(date: Date) => boolean— Disable specific datespresets—{ label: string; value: Date }[]— Preset date optionsplaceholder—string— Placeholder textsize—"small" | "middle" | "large"— Picker sizestatus—"error" | "warning"— Validation statusallowClear—boolean— Show clear button (default:true)
DatePicker.RangePicker Props
Same as DatePickerProps with range-specific additions:
value—[Date, Date]— Selected rangeonChange—(dates, dateStrings) => void— Range change handler