title: JavaScript date objects UK dates
body: <p>I have the following code</p>
  
  <pre><code> datePicker.change(function(){
          dateSet = datePicker.val();
          dateMinimum = dateChange();
          dateSetD = new Date(dateSet);
          dateMinimumD = new Date(dateMinimum);
          if(dateSetD&lt;dateMinimumD){
              datePicker.val(dateMinimum);
              alert('You can not amend down due dates');
          }       
      })
  </code></pre>
  
  <p>dateSet = "01/07/2010"
  dateMinimum = "23/7/2010" </p>
  
  <p>Both are UK format. When the date objects are compared dateSetD  should be less than dateMinimumD but it is not. I think it is to do with the facts I am using UK dates dd/mm/yyyy. What would I need to change to get this working?</p>