title: C#: how do I subtract two dates?
body: <p>Here's my code:</p>
  
  <pre><code>DateTime date1 = new DateTime(byear, bmonth, bday, 0, 0, 0);
  DateTime datenow =  DateTime.Now;
  DateTime date2 = datenow - date1
  </code></pre>
  
  <p>On the last line I am getting this error:</p>
  
  <blockquote>
    <p>Error 1   Cannot implicitly convert type 'System.TimeSpan' to 'System.DateTime'</p>
  </blockquote>
  
  <p>How do I subtract two dates?</p>