Open d-mance opened 5 years ago
Hello,
I am trying to get the hijri date based on unix time but i am getting gregorian date instead.
const justNow = new Date(); const momentHijriNow = momentHijri.unix(justNow.valueOf() / 1000); console.log('momentHijri now', momentHijriNow.format('iYYYY/iM/iD')); // momentHijri now i2019/i2/i6
Maybe I am doing really wrong :S
Thanks for your job ;)
any luck finding a solution? I'm stuck with the same problem
Hello,
I am trying to get the hijri date based on unix time but i am getting gregorian date instead.
const justNow = new Date(); const momentHijriNow = momentHijri.unix(justNow.valueOf() / 1000); console.log('momentHijri now', momentHijriNow.format('iYYYY/iM/iD')); // momentHijri now i2019/i2/i6
Maybe I am doing really wrong :S
Thanks for your job ;)