title: jquery datepicker minDate not working in IE
body: <pre><code>$("#s_shipDate_from").datepicker({
          dateFormat : "yy-mm-dd",
          showButtonPanel: false,
          showOn: "button",
          buttonImage: "images/Cal.gif",
          buttonImageOnly: true,
          onSelect: function (dateText, inst) {
              if($('#s_shipDate_to').val()!="")
              {
                  var fromDate = new Date(dateText);
                  var toDate = new Date($('#s_shipDate_to').val());
                  $('#s_shipDate_to').datepicker("option", 'minDate', fromDate);
  
                  if(toDate&lt;fromDate)
                  {
                      alert("'TO' date must be more than 'FROM' date.");
                      $('#s_shipDate_to').datepicker("setDate", fromDate);
                  }
              }
          }
      })
      $("#s_shipDate_to").datepicker({
          dateFormat : "yy-mm-dd",
          showButtonPanel: false,
          showOn: "button",
          buttonImage: "images/Cal.gif",
          buttonImageOnly: true,
          beforeShow : function (input, inst) {
              if($('#s_shipDate_from').val()!="")
              {
                  var fromDate = new Date($('#s_shipDate_from').val());
                  $('#s_shipDate_to').datepicker("option", 'minDate', fromDate);
              }
          },
          onSelect: function (dateText, inst) {
              if($('#s_shipDate_from').val()!="")
              {
                  var fromDate = new Date($('#s_shipDate_from').val());
                  var toDate = new Date(dateText);
  
                  if(toDate&lt;fromDate)
                  {
                      alert("'TO' date must be more than 'FROM' date.");
                      $('#s_shipDate_to').datepicker("setDate", fromDate);
                  }
              }
          }
      })
  </code></pre>
  
  <p>I have <code>From</code> and <code>To</code> datefields, using jquery-ui datepicker. I wrote the above code so that, <code>To</code> date can't be more than <code>From</code> date, and it works great in FF/chrome, but doesn't work in IE(8). Any ideas?</p>