I have a date which is displayed as 12 May 2013. I am using the format "dd MMMM yyyy". I want to display the month text i.e May in arabic text. Is there any way? Also, Is there a way to convert the english numbers to arabic numbers in the datetime?
Have you tried using an Arabic CultureInfo?
var dateTime = DateTime.Now;
var dateString = dateTime.ToString("dd MMMM yyyy", System.Globalization.CultureInfo.GetCultureInfo("ar"));
ar is the ISO 639 two-letter language code. You can also specify a subculture such as ar-EG for Arabic (Egypt).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With