Date Picker


The DatePicker plugin allows the user to fetch date or time using native dialogs.


ionic cordova plugin add cordova-plugin-datepickernpm install @ionic-native/date-picker
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/date-picker

Supported Platforms

  • Android
  • iOS
  • Windows


import { DatePicker } from '@ionic-native/date-picker/ngx';

constructor(private datePicker: DatePicker) { }

  date: new Date(),
  mode: 'date',
  androidTheme: this.datePicker.ANDROID_THEMES.THEME_HOLO_DARK
  date => console.log('Got date: ', date),
  err => console.log('Error occurred while getting date: ', err)