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

Format to iD/iM/iYYYY - gives arabic text not English

Open ghost opened this issue 5 years ago • 2 comments

Hi I tried to format from gregorian to Hijri date but gives me arabic text. moment(value, "DD/MM/YYYY").format("iD/iM/iYYYY");

ghost avatar Feb 18 '19 10:02 ghost

Even crazier is that I'm seeing moment(moment().format('iD/iM/iYYYY'), 'iD/iM/iYYYY').isValid() return false

mdentremont avatar May 23 '19 17:05 mdentremont

change the locale or create a new one and override postformat()

talal424 avatar Jun 29 '20 07:06 talal424