title: Convert string into mm/dd/yyyy format
body: <p>I have following strings in different formats:</p>
  
  <pre>
  16/05/2014
  21-Jun-2014
  2014-05-16
  16-05-2014
  5/19/2014
  14 May 2014
  </pre>
  
  <p>I need to convert all the above strings into mm/dd/yyyy format in c#.
  I have tried used <code>DateTime.ParseExact</code> as <code>DateTime dt = DateTime.ParseExact("16-05-2014", "mm/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture)</code> in C# but i am getting the exception as "String was not recognized as a valid DateTime".</p>
  
  <p>I have also tried to use to <code>Convert.ToDateTime()</code> but it is also not working.</p>
  
  <p>Is there any method or function that we can write/available in C# that would convert the above string formats into a single date format i.e into "mm/dd/yyyy" format ??</p>
  
  <p>Any help on this would be greatly appreciated.</p>