+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Arabic Culture Date format

Arabic Culture Date format

4 posts, 0 answered
  1. Enas
    Enas avatar
    0 posts
    Registered:
    25 Feb 2016
    14 Aug
    Link to this post
    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 .
  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    14 Aug in reply to Enas
    Link to this post

    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

  3. Enas
    Enas avatar
    0 posts
    Registered:
    25 Feb 2016
    14 Aug in reply to Victor Leontyev
    Link to this post
    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 .

  4. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    14 Aug in reply to Enas
    Link to this post

    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

4 posts, 0 answered