Arabic Culture Date format

Posted by Community Admin on 03-Aug-2018 07:49

Arabic Culture Date format

All Replies

Posted by Community Admin on 14-Aug-2016 00:00

Hi , I am new to Sitefinty .. but I noticed that the Dates for Arabic is rendered as Hijry dates , I am not sure how can I change this to use Arabic Gregorian dates  , please advise .

Posted by Community Admin on 14-Aug-2016 00:00

Hi Enas. 

Default AR culture in .Net using Hijri calendar, all others cultures use Gregorian 

You have two way how to fix that:

1) Use AR language with different culture.  For example Egypt, UAE. You can find more information here: http://stackoverflow.com/questions/359986/how-to-display-arabic-dates-in-the-gregorian-calendar

2) If you can't use AR with different culture, you need to edit widgets templates for every widget. I posted answer to similar question here: http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/arabic-site-news-listing-to-show-date-in-gregorian

Posted by Community Admin on 14-Aug-2016 00:00

Thank you for your reply .. actually I am using AR culture without AR-SA and the translation is 50% completed , so I believe that changing the culture is not an option now . I will try option 2 and let you know .

 

Very appreciated .

Posted by Community Admin on 14-Aug-2016 00:00

AR is equal to AR-SA (details is here: http://www.csharp-examples.net/culture-names/)

In your case - yes, it is way faster to fix widget templates

This thread is closed