moment-hijri
moment-hijri copied to clipboard
Why it doesn't support dates before 1356(1937)?
m = moment('1355/8/28', 'iYYYY/iM/iD'); // Parse a Hijri date. m.format('iYYYY/iM/iD [is] YYYY/M/D'); // 1410/8/28 is 1990/3/25
"1355/12/NaN is 1001/3/1"
so , i have this problem . anybody else have a solution ?
the Ummulqura algorithm doesn't includes the days before 1355AH. AFAK that if you are targeting days before 1355 is to use the Kuwaiti hijri calculation algorithm.
thanks for answer
i test now date but give wrong response
m = moment('1438/1/3', 'iYYYY/iM/iD'); m.format('iYYYY/iM/iD [is] YYYY/M/D'); "1355/12/NaN is 0000/1/1"
i change code
to
input = config._i + '-' + leftZeroFill(date[0], 4) + '-' +
leftZeroFill(date[1] + 1, 2) + '-' +
leftZeroFill(date[2], 2)
worked me. maybay other function are damaged (not test)
hi, first thanks for the library. It is great :) Is there a way to use the Kuwaiti hijri calculation algorithm as part of this library? (I am looking for support for earlier dates)
same issue