What is the simplest way to print c# DateTime in Persian? currently I'm using :
static public string PersianDateString(DateTime d)
{
CultureInfo faIR = new CultureInfo("fa-IR");
faIR.DateTimeFormat.Calendar = new PersianCalendar();
return d.ToString("yyyy/MM/dd", faIR);
}
Which throws an exception
Not a valid calendar for the given culture