moment-hijri icon indicating copy to clipboard operation
moment-hijri copied to clipboard

A Hijri calendar (Based on Umm al-Qura calculations) plugin for moment.js

Results 44 moment-hijri issues
Sort by recently updated
recently updated
newest added

I converted dates for +- 5 years interval from now to be sure it matches Hijri dates given by MS Umm al-Qura calendar and found 1 mismatch: `moment('2024-12-02').format('YYYY-M-D [is] iYYYY-iM-iD')...

We are using the moment-hijri in a datepicker component. There we have noticed that if we try to get a date of 1501 or above it returns NaN. Infact I...

I have created a project that, use this awesome library to make datepicker base on bootstrap 4 https://github.com/balbarak/bootstrap-hijri-datepicker feel free to contribute Thanks

Added replace function in case where format() returns Arabic numerals

reloves antd DatePicker issue of undefined doesn't have function utcOffset ref #43

If `moment-hijri` object is passed to DatePicker from [antd](https://ant.design/components/date-picker/) as `value` prop; then DatePicker errors because return of `value.locale()` is `undefined` minimal codes to reproduce ```js import moment from "moment-hijri";...

Hi! Getting the number of days in the month doesn't work. Method `iDaysInMonth()` returns value 'NaN'. Workaround: Method `endOf('iMonth').iDate()` return value correctly.

good first issue

When the date is set to 1/1/1441 endOf('iMonth) will return 1. Which is wrong!

Hello. I'm concerned using this library has implicit conflicts with other plugins. By adding methods to the singleton moment object at import time, it's possible to have conflicts at a...

Sometimes changing month returns wrong date. It happens only if current date is first day in month. ``` javascript moment.format("iYYYY/iMM/iDD"); // "1438/05/01" moment.iMonth(5); moment.format("iYYYY/iMM/iDD"); // "1438/06/29" ``` Next same event...

bug