title: Reading in dates from a textfile/excluding time from DateTime
body: <p>I have a text file with each line being a sentence. Each sentence at the end has a date at which it was typed or made. For instance: </p>
  
  <blockquote>
    <p>blablablablabla 3/14/2013 </p>
  </blockquote>
  
  <p>When I read the line in from the textfile, I get a an error saying the format exception was unhandled. </p>
  
  <pre><code>x.DateOfSentence = 
      DateTime.ParseExact(lineArray[lineArray.Length-1], "M/D/YYYY", null);
  </code></pre>
  
  <p>Where x is the name of the <code>Sentence</code> object and <code>DateOfSentence</code> is an accessor in a class called <code>Sentence</code>. </p>
  
  <p>I have tried regular <code>DateTime.Parse</code>, however, that still gives me errors. </p>
  
  <p>Is there a way to exclude the time portion of <code>DateTime</code> when I read in the date from the textfile? </p>