أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
public static string ConvertNumeralsToArabic(string input)
{
return input = input.Replace('0', '٠')
.Replace('1', '۱')
.Replace('2', '۲')
.Replace('3', '۳')
.Replace('4', '٤')
.Replace('5', '۵')
.Replace('6', '٦')
.Replace('7', '٧')
.Replace('8', '٨')
.Replace('9', '٩');
}
// Call this where ever you want.
ConvertNumeralsToArabic(DateTime.Now.Date.ToString())
And if you want to convert to words, first u need to create a dictionary of that words, then you can replace by using arrays.
thanks for ur reply..but i need numbers into arabic words for example (45000)خمسة و أربعون ألف
var aNumber =;
var theNumberAsArabicString = string.Format(new CultureInfo("ar-AE"), "{0}", aNumber);
Console.WriteLine(string.format("The Number: {0} is represented in arabic as: {1}", aNumber, theNumberAsArabicString));