Converting Numbers from Western Arabic Digits “1,2,3…” to Eastern Arabic Digits “١, ٢, ٣…”

StackOverflow https://stackoverflow.com/questions/8926792

  •  30-10-2019
  •  | 
  •  

سؤال

I need to convert date stored in database into Hijri and display the same in Arabic

I used the Culture to convert the date which it does but it still display date as English numbers

Example Gregorian Date = 19/01/2012 Its equivalent date in Hirji is 25/02/1433

Following code snippet converts but displays same as 25/02/1433 While i want it in Arabic numbers something like ٢٥/٠٢/٢٠١٢"

string sDate    
DateTime dtt = Convert.ToDateTime("19/01/2012");
CultureInfo ci = new CultureInfo("ar-SA");
sDdate = dtt.ToString("d", ci);

Is there a was it converts date to Hijri and display same as Arabic

I need this for a web project which i am developing in ASP.NET c#

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top