Skip to content

@capgo/capacitor-date-picker

Present native date, time, range, and year month pickers on iOS, Android, and web.

present() shows the platform picker for date, time, or combined modes with min, max, and formatting options. presentRange() handles booking style start and end selection. Customize iOS wheel or inline styles and Android Material dialogs from one TypeScript API.

Typical fits: travel booking, scheduling forms, birth date capture, and filters that need an accessible native control.

PlatformSupportNotes
iOSYesUIDatePicker styles including wheels and inline
AndroidYesMaterial date and time pickers
WebYesFallback picker implementation in the plugin
iOSAndroid
Animated iOS demo of @capgo/capacitor-date-picker opening, selecting a date, and closingAnimated Android demo of @capgo/capacitor-date-picker opening, selecting a date, and closing
iOSAndroid
iOS screenshot of @capgo/capacitor-date-picker showing the native date pickerAndroid screenshot of @capgo/capacitor-date-picker showing the native date picker
  • Present native date, time, date-time, year-month, and countdown-style pickers.
  • Select date ranges through presentRange().
  • Format returned values with ISO, Java/Unicode, and common Moment-style patterns.
  • Apply min, max, date, locale, timezone, and 24-hour time options.
  • Use platform-specific iOS and Android option blocks when needed.
  • Close an active picker programmatically with hide().
  • Capacitor 8 support.
  • Web implementation with the same present() API.
  • Dialog title support.
  • iOS rotation-safe layout and locale handling.
  • iOS yearAndMonth mode.
  • Safer parsing for invalid dates, ISO strings, date-only values, and min / max.
  • Android nested options, is24h, dialog width handling, and UI-thread dialog handling.
  • Minute steps for time pickers.
  • Range selection via presentRange().
FeatureiOSAndroidWeb
present()YesYesYes
presentRange()YesYesYes
hide()YesYesYes
date modeYesYesYes
time modeYesYesYes
dateAndTime modeYesYesYes
yearAndMonth modeYesDate fallbackYes
minuteStepYesYesYes
MethodDescription
presentPresent a native or Web picker for a single value.
presentRangePresent a date range picker. Native platforms use two native selections; Web shows start and end controls together.
hideClose the currently visible picker, if any.
getPluginVersionGet the platform implementation version marker.

This reference is synced from src/definitions.ts in capacitor-date-picker.