Thursday, October 6, 2011

C# - .NET - Wrong Date Format

Culture settings in visual studio for same reasons are not the same as in regional settings. In regional settings it is set to en-US and while executing the following code while running the page CultureInfo.CurrentCulture I am getting en-CA
Not sure why this is happening - couldn't find anything online, but a way around was to modify web.config
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-US"/>

No comments:

Post a Comment