
angular-moment-picker
Angular Moment Picker is an AngularJS directive for date and time picker
by indrimuskaFree
Description
Angular Moment Picker is a date and time picker for AngularJS, the older 1.x version of Angular. It is built as a directive that you attach to a component or an input, and it uses Moment.js for internationalization and all date operations. It does not need jQuery. You can attach the picker to a span or a plain input with an ng-model binding, and it detects the right view to show, such as a date or a time, from the format you set. Formats like YYYY-MM-DD and HH:mm:ss are supported. The locale can be set per picker, using the Moment.js locales. A MomentPickerProvider lets you set a default configuration for all pickers in an app, and the official documentation has a builder for the available options. The project explains that it was created because AngularJS date pickers were rare compared with jQuery plugins, and none of them used Moment.js. It is installed by adding the script and stylesheet files and the Moment.js library to the page, then declaring the moment-picker module in the app. The GitHub repository hosts the source, and the project is aimed at developers who maintain AngularJS applications.…
Highlights
- Date and time picker directive for AngularJS
- Uses Moment.js for dates and locales
- No jQuery required
- Automatic min and max view detection from the format
- Default configuration through MomentPickerProvider
Ratings & Reviews
No ratings yet
Be the first to rate angular-moment-picker.
People also visit

@danielmoncada/angular-datetime-picker-moment-adapter
Angular Date Time Picker (MomentJs Adapter)
angular-moment-picker FAQ
What is Angular Moment Picker?
An AngularJS directive for date and time pickers that uses Moment.js.
Does it work with modern Angular?
It is an AngularJS directive, for the 1.x line of the framework, not for modern Angular.
Do I need jQuery?
No. The project says it does not require jQuery.
How do I set the date format?
Set the format attribute, for example YYYY-MM-DD for dates or HH:mm:ss for times.
Can I set one default configuration for all pickers?
Yes, through MomentPickerProvider.
How do I install it?
Add the picker script and stylesheet, plus Moment.js with locales, to the page, then declare the moment-picker module in your app.
What are the best angular-moment-picker alternatives?
Popular alternatives to angular-moment-picker include ng-pick-datetime, @danielmoncada/angular-datetime-picker-moment-adapter and ng2-date-picker. See all angular-moment-picker alternatives
















