Multilingual Date format

Viewed 1274

I have to create multilingual website in C# .net, I am getting issue while I change culture other than default(i.e: en-us) because date format is changed with culture and all calender's and ajax calender extender showing error. I also get error while I fire some SQL query just because my database culture is en-us and date is in other culture like Arabic, Chinese etc...

Please suggest.

1 Answers

For instance, a Calendar. You wanna want which date was selected, then use SelectedDate which returns a DateTime. Hence, you do not have to cope with various strings.

EDIT: Regarding cultures date.ToString(new CultureInfo("en-US"))

Related