title: Check if weekend exist in date range using javascript
body: <p>Wondering if anyone has a solution for checking if a weekend exist between two dates and its range.</p>
  
  <pre><code>var date1 = 'Apr 10, 2014';
  var date2 = 'Apr 14, 2014';
  
  
  funck isWeekend(date1,date2){
     //do function
  
      return isWeekend;
  }
  </code></pre>
  
  <p>Thank you in advance.</p>
  
  <p>EDIT Adding what I've got so far. Check the two days.</p>
  
  <pre><code>function isWeekend(date1,date2){
     //do function
      if(date1.getDay() == 6 || date1.getDay() == 0){
          return isWeekend;
          console.log("weekend")
      } 
          if(date2.getDay() == 6 || date2.getDay() == 0){
          return isWeekend;
          console.log("weekend")
      } 
  }
  </code></pre>