indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
527 stars 229 forks source link

Add support for Hijri Calendar #48

Open aboalwi opened 7 years ago

aboalwi commented 7 years ago

would be great

indrimuska commented 7 years ago

Hi @aboalwi, to support Hijri Calendar there's needed that Moment.js support that kind of calendar, and it natively doesn't do. You can use Islamic Calendar methods using the plugin moment-hijri, but as you can see, they have different names and formats:

That being said, theoretically if it exists a moment.js plugin, we can add support for any kind of calendar system (Gregorian, Hijri, Jalaali, ...), adding a new system="Gregorian" attribute. Unfortunately, actually I don't have the time to code a solution, but if you want to propose a PR I will be glad to help you! :)