title: compare 2 dates by combining date and time
body: <pre><code>var dateStart = $('input[id=orderdate-0]').val();
      var timeStart = $('input[id=ordertime-0]').val();
      var dateEnd = $('input[id=orderdate-1]').val();
      var timeEnd = $('input[id=orderime-1]').val();
  
      var startDate = new Date(dateStart + " " + timeStart);
      var endDate = new Date(dateEnd + " " + timeEnd);
       startDate.getTime();
      alert(startDate);
  </code></pre>
  
  <p>i am trying to combine dateStart which is '2013-12-11' and timeStart which is '11:00' and trying to generate date out of it. But i get alert like invalid date. Is there anything wrong in code.?</p>