hijrii date problem

eslam zaghloul asked on February 26, 2019 07:46

i have created a website that have 2 culture english-US and Arabic-SA my problem that date appear in arabic version in hiijrii i need a method to convert it asap

Correct Answer

Matúš Ušiak answered on February 26, 2019 13:55

Hi Eslam, forcing the culture like below should do the trick. {% FormatDateTime(NewsReleaseDate, "dd/MMMM/yyyy")|(culture)en-us %}

0 votesVote for this answer Unmark Correct answer

Recent Answers


vasu yerramsetti answered on February 26, 2019 09:05

Please go through this link

0 votesVote for this answer Mark as a Correct answer

eslam zaghloul answered on February 26, 2019 09:17

i already saw this before but didnt find answer

0 votesVote for this answer Mark as a Correct answer

eslam zaghloul answered on February 26, 2019 09:18

in english it appears 09/February/2019 but in ar-SA this convert to hijri so it become 06/04/1440 this is my problem

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on February 26, 2019 10:41

Where is it an issue for you?

Is it displayed wrongly somewhere for the visitors, if so how is that data rendered? Is it a widget, macro, custom code...?

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on February 26, 2019 10:45

I'm not familiar with the hijri calendar, but found a few articles that might help you:

Other question on Devnet: https://devnet.kentico.com/questions/converting-to-solar-calendar

Free Kentico Marketplace web part: "Gregorian Date Vs Hijri Date" https://devnet.kentico.com/marketplace/web-parts/gregorian-date-vs-hijri-date

Although these are pretty old articles and the Web Part is build for Kentico 9 it should give you a heading and sample code on how to handle it.

0 votesVote for this answer Mark as a Correct answer

eslam zaghloul answered on February 26, 2019 13:57

thanks matus it works

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.