title: C# DateTime toString behaves differently on windows server 2012 and 2016
body: <p>I have the same instance of an application on a windows server 2012 and another on a windows server 2016, But in 2012 version, C# <code>toString('yyMMddHHmmss')</code> on DateTime object behave differently than 2016 version !</p>
  
  <p>Here is the log of <code>toString</code> I get in 2012 server:</p>
  
  <pre><code>Info Culture is: fa-IR 
  Info UiCulture is: fa-IR 
  Info transactionTime: 181217145529 
  </code></pre>
  
  <p>and here is the output of 2016 version:</p>
  
  <pre><code>Info Culture is: fa-IR 
  Info UiCulture is: fa-IR 
  Info transactionTime: 970926140801 
  </code></pre>
  
  <p>I should note that the control panel setting in region section for both of the systems are identical, I have no idea what is happening with the 2012 version ! any help is much appreciated.
  The Identity of the application pool of both servers are set to <code>ApplicationPoolIdentity</code> and registery key of <code>International</code> located here <code>HKEY_CURRENT_USER\Control Panel\International</code> is set to <code>en-US</code> for both servers.</p>
  
  <p>Edit:
  Here is the example source code of my usage of <code>toString</code></p>
  
  <pre><code>var date = transactionTime.ToString("yyMMddHHmmss")
  </code></pre>