Date Ranges with Min/Max Dates
Restrict selectable dates to a specific range usingminimumDate and maximumDate.
- Setting
minimumDateto prevent selecting past dates - Setting
maximumDateto limit future date selection - Useful for booking systems, appointment scheduling, or date-sensitive forms
Advanced Date Range Example
- Booking Dates
- Age Verification
- Historical Dates
Restrict date selection to a booking window (e.g., 7 days from now to 90 days out).
Minute Intervals
Control the granularity of time selection with minute intervals.minuteIntervalrestricts selectable minutes to specific increments- Accepts values: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30
- Perfect for appointment booking systems with set time slots
Minute Interval Variations
- 15-Minute Slots
- 30-Minute Slots
- 5-Minute Slots
Timezone Offsets
Display and select times in different timezones usingtimeZoneOffsetInMinutes.
timeZoneOffsetInMinutesaccepts offset in minutes from UTCundefineduses the device’s current timezone (default)- Positive values for east of UTC, negative for west
- Calculate:
hours * 60(e.g., UTC+5:30 = 330 minutes)
Localization
Customize the picker’s language, date format, and 12/24-hour display.localeprop accepts standard locale identifiers (e.g., ‘en-US’, ‘fr-FR’, ‘ja-JP’)- Changes language of month/day names
- Adjusts date component order (MDY vs DMY vs YMD)
- Controls 12/24-hour time format based on locale conventions
- “Today” text is translated automatically
The locale only affects the picker UI itself. To change the modal’s confirm/cancel button text, use the
confirmText and cancelText props.Complete Advanced Configuration
Combine multiple advanced features for a production-ready implementation.- Combining min/max dates, minute intervals, and localization
- Dynamic mode switching
- Custom text and theming
- Professional date/time formatting
- Complete user experience flow
Controlling Spinner State for Custom Buttons
Disable confirm buttons while the user is actively scrolling (Android inline only).- Using
onStateChangeto track picker state - Disabling buttons while user is scrolling
- Providing visual feedback about picker status
- Preventing accidental submissions