title: String was not recognized as a valid DateTime
body: <p>I'm receiving this error "<strong><em>String was not recognized as a valid DateTime</em></strong>" with the code below:</p>
  
  <pre><code>DateTimeOffSet dt=new DateTimeOffset(Convert.ToDateTime(DateTime.Now.ToString("dd/MM/yyyy hh:mm tt")));
  </code></pre>
  
  <p>It works in DEV environment but not in Production.</p>
  
  <p>Could anyone please advice what's wrong with the code above?</p>
  
  <p>Thank you.</p>