Blog

News

 
     

issues with parsing date and number formats - apply regional and language settings to reserved accounts

Apr 12 2014

Parsing numbers and dates is cumbersome - the same line of code may produce different results on different systems.

useful debugging information

  • Globalization.CultureInfo.CurrentCulture.Name
  • Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator
  • Globalization.CultureInfo.CurrentCulture.DateTimeFormat.DateSeparator

check these settings

  • regional and language settings of code executing account (Control Panel > Region and Language)
  • if necessary apply regional and language settings to reserved accounts (LOCAL SERVICE, NETWORK) by "Control Panel" > "Region and Language" > Administrative tab > "Copy settings..." button > check "Welcome screen and system accounts"

Themen

Archiv