title: System.FormatException: String was not recognized as a valid DateTime - when trying to convert MM/DD/YYYY
body: <p>I have following C# method:</p>
  
  <pre><code>DateTime ConvertStringToDate(string dateInString)
  {
      try {
          //string SSD = dateInString;
          //DateTime date = Convert.ToDateTime(SSD);
          //string strDate = String.Format("{0:yyyy-MM-dd HH:mm:ss.fff}", date);
          //return Convert.ToDateTime(strDate);
  
          return DateTime.ParseExact(dateInString, "MM/dd/yyyy", CultureInfo.InvariantCulture);
      }
      catch (Exception) { }
      return DateTime.Today;
  } 
  </code></pre>
  
  <p>The code in comment is another way I tried before.</p>
  
  <p>I am in India and developing an ASP.NET WebForms application for my client in US. On one of its forms my client will enter the date in TextBox like 6/20/2018 which is MM/dd/yyyy format. </p>
  
  <p>But in both the ways I am getting this error: <code>System.FormatException: 'String was not recognized as a valid DateTime.'</code></p>
  
  <p>I tried many solutions on SO but none of them are working.</p>