title: Why is DateTime.TryParseExact in C# is not working as expected
body: <p>When I try to run </p>
  
  <pre><code>DateTime.TryParseExact(employeeHireDate, "mm/dd/yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dDate);
  </code></pre>
  
  <p>C# is converting the DateTime to some other date that is 1/5/2015 where as im passing 05/05/2015.</p>
  
  <p>Any help would be appreciated.  </p>
  
  <p>Following is my code:</p>
  
  <pre><code>static void Main(string[] args)
  {
      string employeeHireDate = "05/05/2015";         
      DateTime dDate;
      var isDateValid= DateTime.TryParseExact(employeeHireDate, "m/d/yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dDate);
  
      if (!isDateValid)
      {
          Console.WriteLine("Failed");
          Console.ReadLine();
      }
      else
      {
          Console.WriteLine("Success");
          Console.ReadLine();
      }
  }
  </code></pre>