title: comparing date value in inputbox using if else in javascript
body: <p>my code below is in javascript, $('#date_start').change(function(){ is working fine, but when im using if else statement to compare the date inputted in my inputbox from the current date, nothing happens at all.</p>
  
  <pre><code>$(document).ready(function() {
  
  $('#date_start').change(function(){
  
  var startdate = $('#date_start').datepicker("getDate");
  var today = new Date();  
  var tomorrow = today.add(2).day();
  if(startdate.getTime() &lt; today.getTime()){
      document.getElementById('finish').disabled = true;
  }
  else{
  </code></pre>