Dear All,
The below code is working fine
CultureInfo arSA = CultureInfo.CreateSpecificCulture("ar-SA");
DateTime dt = new DateTime(1975, 07, 10);
Lbldate.Text = dt.ToString("yyyy/MM/dd", arSA);
but the date format is (1975, 07, 10) and I've the below date format 1975-07-10
System.Globalization.CultureInfo arSA = System.Globalization.CultureInfo.CreateSpecificCulture("ar-SA");
DateTime dt = new DateTime(1975-07-10);
Lbldate.Text = dt.ToString("yyyy-MM-dd", arSA);
I'm trying the above code it's not working.
Specified time is not supported in this calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and 11/16/2077 23:59:59 (Gregorian date), inclusive. Parameter name: time