Non-gregorian calendars and Globalize.js

197 Views Asked by At

Are non-Gregorian calendars currently supported in Globalize.js? If so, how can I convert, let's say, today's date, into a Hijri calendar equivalent?

For example, right now when I try this:

      Globalize.locale("ar-eg");
      var arDate =  Globalize.formatDate( new Date( 2014, 9, 24 ), { date: "long" } ); 

I get: 24 أكتوبر، 2014

But what I really want is to get is 29 ذو الحجة‎ 1435 (or similar equivalent).

1

There are 1 best solutions below

0
Rafael Xavier On

We're working the support for non-gregorian calendars at: