title: How to find Monday with given time?
body: <p>I am trying to find the monday for whatever day I am given.
  It has two requirements.</p>
  
  <p>For example: </p>
  
  <pre><code>1. If given day is Monday through Friday, find the last closest Monday, 
     so if the given day is 10-31, I need to get 10-27
  2. If given day is Saturday or Sunday, find the next Monday.
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>var today = new Date(); //assuming it's 11/1/2014 Saturday
  var todayDay = today.getDay(); &gt; 6
  
  
  if(todayDay == 6) {
      var Monday = today.getDate() + 2;
  }    
  </code></pre>
  
  <p>I am not sure how to find Monday's day and time dynamically. I have looked up the javascript day method but not sure how to get it. Can anyone help me about it? Thanks!</p>