title: datediff help in vb.net
body: <p>Hey all i have 2 dates that i need to see the days that are different.</p>
  
  <p>Problem being is that the server date is not in the normal <strong>MM/DD/YYYY</strong> format. It is in the format <strong>YYYYMMDD</strong>.</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>Dim curDate As Date = Format(Now, "yyyyMMdd")
  Dim srDate As Date = dr(6)
  Dim M As Long = DateDiff(DateInterval.Weekday, curDate, srDate)
  </code></pre>
  
  <p>The curDate has the error of:</p>
  
  <pre><code>Conversion from string "20110325" to type 'Date' is not valid.
  </code></pre>
  
  <p>Any help would be great! :o)</p>
  
  <p>David</p>