0
Posted on 2:34 AM by Softminer and filed under

in c# by default when the UI culture is changed then for every UI language there is a format

for example for

en-US is MM/dd/yyyy
de-DE is dd.MM.yyyy

so if you UIculture is changed to de-DE then the datatime format will also change to dd.MM.yyyy

if you want to change datetime format for de-DE to MM/dd/yyyy then try to set it

culture.DateTimeFormat.ShortDatePattern = "MM/dd/yyyy";
0
Responses to ... overwriting DateTime format of UICulture in C#.net