title: jquery datetimepicker disable today
body: <p>I want to allow selection of all weekends excluding today (if today is a weekend). However, the following code allows selection of today. This is what I am trying:</p>
  
  <pre><code>  jQuery('.datetimepicker').datetimepicker({
      timepicker:false,
      minDate:'+1970/01/01',
      maxDate:'+1970/01/10',
      defaultDate:'+1970/01/01',
      format:'d/m/Y',
      beforeShowDay: DisableWeekDays,
      closeOnDateSelect: true
   });
  
   function weekendsOnly(date) {
      var day = date.getDay();
      return [(day &gt; 0 &amp;&amp; day &lt; 6), ''];
  }
  
  function DisableWeekDays(date) {
      var weekenddate = weekendsOnly(date);
      var disableweek = [!weekenddate[0]];
      return disableweek;
  }
  </code></pre>
  
  <p>This is what I am using: <a href="http://xdsoft.net/jqplugins/datetimepicker/" rel="nofollow">http://xdsoft.net/jqplugins/datetimepicker/</a>
  also, minDate doesn't seem to work at all.</p>