“CurrentCulture” (Problem)
Look to the following code:
1
Thread.CurrentThread.CurrentUICulture =
2
CultureInfo.CreateSpecificCulture("ru-RU");
3
Thread.CurrentThread.CurrentCulture =
4
CultureInfo.CreateSpecificCulture("en-US");
5
var dateTime = new DateTime(2014, 12, 31, 13, 1, 2);
6
Console.WriteLine(dateTime);
Copied!
Which locale will be choose for date formatting?
Solution
Copy link