jalaliday
jalaliday copied to clipboard
convert jalali date to gregor date
hi, When I want to change the date, the date is converted as follows and the same jalali date is returned
1400/05/07 => Thu May 08 1400 00:00:00 GMT+0325 (Iran Daylight Time)
const date = "1400/05/07"
dayjs(date ).calendar("gregory").locale("en")
i think you should pass {jalali: true} to dayjs to make it work
something like this:
dayjs(date, {jalali:true} ).calendar("gregory").locale("en")