title: Convert various date formats to MM/dd/yyyy in C#
body: <p>I am developing an app for Windows Phone. Due to different date formats used across the world, the datepicker in Windows Phone will display date as <strong>dd-MM-yyyy</strong> for users in India and <strong>MM/dd/yyyy</strong> for users in USA, just for an example. So my app crashes as it is set to use the <strong>MM/dd/yyyy</strong> format ONLY for a particular module. </p>
  
  <p>Can you help me with some code snippet as I am unable to find a solution for this?</p>
  
  <p><strong>Edit:</strong>
  My try</p>
  
  <pre><code>DateTime dt = DateTime.ParseExact(x.msDate.ToString(),"M/d/yyyy",System.Globalization.CultureInfo.InvariantCulture);
  </code></pre>