title: Get Date of Previous Monday
body: <p>I'm trying to get the date of the monday in the current week. Is this close to correct?</p>
  
  <pre><code>Dim MondayOfCurrentWeek As Date = Date.Today - Date.Today.DayOfWeek + 1
  </code></pre>
  
  <p>As far as I understand it the AyOfWeek indexes are:</p>
  
  <pre><code>1 = Monday
  2 = Tuesday
  3 = Wednesday
  4 = Thursday
  5 = Friday
  6 = Saturday
  0 = Sunday
  </code></pre>
  
  <p>Hence if for example Date Today is a thursday I would get:</p>
  
  <pre><code>Dim MondayOfCurrentWeek As Date = Date - 4 + 1 
  </code></pre>
  
  <p>which would be equal to </p>
  
  <pre><code>Date - 3
  </code></pre>
  
  <p>and seems right to me.</p>
  
  <p>Or am I totally off?</p>