title: JqueryUI DatePicker parseDate comparison
body: <p>I am trying to compare a date in the jqueryui datepicker.beforeShowDay() to establish whether a day is selectable or not. However it doesn't seem to work. The code is:</p>
  
  <pre><code>function (d) {
      if ((d.getDay() == 0) || (d == $.datepicker.parseDate('yy/mm/dd', '2012/12/25'))) {
        return [false, ""];
      }
      else {
        return [true, "2"]
      };
  }
  </code></pre>
  
  <p>the first test (getDay) works fine but the second does not:</p>
  
  <pre><code>(d == $.datepicker.parseDate('yy/mm/dd', '2012/12/25')): false
  </code></pre>
  
  <p>even though </p>
  
  <pre><code>$.datepicker.parseDate('dd/mm/yy', '25/12/2012'): Tue Dec 25 2012 00:00:00 GMT+0000 (GMT Standard Time)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>d: Tue Dec 25 2012 00:00:00 GMT+0000 (GMT Standard Time)
  </code></pre>
  
  <p>which look the same to me.</p>
  
  <p>Any ideas?</p>