title: How do I set as startDate the first day of previous month with Datepicker jquery?
body: <p>I'm using the jquery datepicker to show a calendar with enabled days only from the first of the previous month and then.I want to set as startDate the first of the previous month with Datepicker jquery. This is the function i use to find the first day of the previous month</p>
  
  <pre><code>function firstOfLastMonth() {
  var year = date.getFullYear();
  var month = now.setMonth(now.getMonth() -1);
  return '01/' + month + '/' + year;      
  }
  </code></pre>
  
  <p>and this is for the datepicker</p>
  
  <pre><code>$('.datech').datepicker({
  format: "dd/mm/yyyy",
  startDate: firstOfLastMonth,
  language: "en"
  });
  </code></pre>
  
  <p>but it doesn't work. </p>