title: how to compare date with todays date ? where date is in format dd-mm-yyyy?
body: <p>how to compare date with the today's date where date is in format dd-mm-yyyy</p>
  
  <pre><code>var sdate = document.getElementById('datepicker-example2').value;
  if (Date.parse(document.getElementById("datepicker-example2").value) &lt; Date.parse(dateToday.getDate() + "/" + dateToday.getmonth() + "/" + dateToday.getYear())) {
      alert("dsd");
  }
  </code></pre>