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

Why dates beyond 1500 AH not supported.

Open anshu-git opened this issue 4 years ago • 3 comments

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 can see the comments in js also that it will return dates till year 1500 only. Any particular reason for this?

anshu-git avatar Oct 06 '19 05:10 anshu-git

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 can see the comments in js also that it will return dates till year 1500 only. Any particular reason for this?

Hi anshu-git, Did you find a solution for this?

AIZGames avatar Jan 09 '20 14:01 AIZGames

I am facing this issue for dates before 1369 any idea?

jehajj avatar Feb 13 '20 08:02 jehajj

For any one who are facing this issue, after a long search I didn't find any reasonable reason for this issue so I'm using a utils to convert from gregorian to Hijri and vice versa without using moment-hijri

Utils Url

MohammedSaberMohammed avatar Jun 24 '23 23:06 MohammedSaberMohammed