title: jQuery string Comparison?
body: <p>I'm comparing two dates and my code goes like this.</p>
  
  <pre><code>jQuery('.newAppointment a.ui-state-default').click(function() {
    var date = jQuery(this).parent().attr('title');
   var d = jQuery.datepicker.parseDate('dd/mm/yy',date.toString());
    alert(d);
    var today = new Date;
    var t = jQuery.datepicker.parseDate('dd/mm/yy',today.toString() );
    alert(t)
    if(t &gt; d){
    url = "/users/" + user_id + "/events/new?type=Surgery"+"&amp;day=" + escape(date);;
    window.location = url;
    }else{
      alert("you cannot add appointment to past dates");
    }
  });
  </code></pre>
  
  <p>but am getting error in firebug.
  uncaught exception: Missing number at position 0
  can anyone tell me where I'm doing wrong.</p>