Hi i am looking for method to transform English date in this format dd/MMM/yyyy
to Arabic date
for example 18/Feb/2016
will be in Arabic ١٨/فبراير/٢٠١٦
Hi i am looking for method to transform English date in this format dd/MMM/yyyy
to Arabic date
for example 18/Feb/2016
will be in Arabic ١٨/فبراير/٢٠١٦
Try using something like this:
DateTime.Now.ToString("dd dddd , MMMM, yyyy", new CultureInfo("ar-AE"));
instead of the DateTime.Now
just put whatever DateTime
object you want to convert.
Use CultureInfo
class to convert date formats in different languages.
using System.Globalization;
DateTime.UtcNow.ToString("dd dddd , MMMM, yyyy", new CultureInfo("ar-AE"));