Globalization and Localization Namespaces in Visual Studio
The namespaces in the .NET Framework for globalizing and localizing applications and components include:
System.Globalization - contains classes that define culture-related information, including the language, the country/region, the calendars in use, the format patterns for dates, currency and numbers, and the sort order for strings.
When dealing with date-times, it's best to always use GMT/UTC once you've left the presentation layer of your application. That way everyone knows a single timezone, and the app can convert it to the local timezone on the local PC (which knows what timezone it's in).
So far as formatting (like when passing a date around as a string), the ISO-8601 format works really well. See:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.