title: How do I detect the current culture of the executing thread?
body: <p>I have a nice function setup for formatting dates as per 
  <a href="https://stackoverflow.com/questions/461098/leading-zero-date-format-c-asp-net">Leading Zero Date Format C#</a></p>
  
  <p>But it turns out in our farm we have some blades running on a UK locale and some on a US locale so depending on which it crashes.</p>
  
  <p>So what I'm after is how do I test the current server locale? </p>
  
  <p>Something like... </p>
  
  <pre><code>if(Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName == "GB"){
  ...
  
  }
  else
  {
  
  ..otherstatement
  }
  </code></pre>
  
  <p>Ta</p>