title: C# DateTime Parsing Problem
body: <p>My current code looks like this:</p>
  
  <pre><code>        DateTime dateBegin = DateTime.ParseExact(begin, "MM/dd/yyyy", null);
          DateTime dateEnd = DateTime.ParseExact(end, "MM/dd/yyyy", null);
  </code></pre>
  
  <p>But it throws an exception whenever the date in "end" is different. I get the dates from a DateTimePicker control, thus the date may look like "1/12/2010" and then it'll throw the exception. How do I avoid this?</p>
  
  <p>Thanks.</p>