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
Hi Eslam, forcing the culture like below should do the trick. {% FormatDateTime(NewsReleaseDate, "dd/MMMM/yyyy")|(culture)en-us %}
Please go through this link
i already saw this before but didnt find answer
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
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...?
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.
thanks matus it works
Please, sign in to be able to submit a new answer.