SEARCH

Setting a culture to an application
admin
13.01.2010

To set a Culture (date format, decimal symbol, etc.) simply insert this code to the beginning of the application (VB.NET):

System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-GB")

Remember, if you have a multi-threading application, you must insert this line at the beginning of every thread.

This is relevant for …

VB.net, date, culture

Post a comment