Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB"); Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-GB");
<globalization enableClientBasedCulture="true" uiCulture="en-GB" culture="en-GB" />
Quote:Azure runs all servers in UTC, which is appropriate. You should never call DateTime.Now in a server application. That imposes the time zone of the server into the results. There is no good reason for that - you should be able to deploy your application anywhere. Culture will only affect formatting, not time zones. And only the Culture setting affects the output of DateTime.ToString(). The UICulture doesn't matter (for this regard). It's not picking up your values from web.config because it is case sensitive and you are using the incorrect casing.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)