Multilingual Date Format

I need to create a multilingual website in C # .net, I get a problem, and I change the culture to a different one (ie: en-us), because the date format is changed using the culture, and all calendaring and ajax calendaring expanders show an error. I also get an error while I run some SQL query only because my database culture is en-us and the date is in another culture, for example, in Arabic, Chinese, etc ...

Please offer.

+4
source share
1 answer

For example, Calendar . You want the date to be selected, then use SelectedDatethat returns DateTime. Therefore, you do not need to deal with various lines.

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

+1
source

All Articles