I have two applications (web site and desktop application) launched on the one machine, both uses the following to serialize DateTime object value:
string strDateTileFullFormat = Thread.CurrentThread.CurrentCulture
.GetConsoleFallbackUICulture().DateTimeFormat.FullDateTimePattern;
string SummarySupporyUntil = string.Concat("until ",
TestLicenseExpiryDate.ToString(strDateTileFullFormat));
One application create: "Saturday, December 31, 2011 12:00:00 AM", another: "December 31, 2011 12:00:00 AM"
Difference is that one uses "Canada" country setting, another - "USA".
The problem is that I need these date to be similar (actually, I don't know which kind is correct, perhaps the 1st one).
I looked web/app.config files but don't see anything related to locale settings. Also, I don't have manual changes for CurrentCulture...
Please advise. Thanks!