title: How to check if input date is equal to today's date?
body: <p>I have a form input with an id of 'date_trans'. The format for that date input (which is validated server side) can be any of:</p>
  
  <ul>
  <li>dd/mm/yyyy</li>
  <li>dd-mm-yyyy</li>
  <li>yyyy-mm-dd</li>
  <li>yyyy/mm/dd</li>
  </ul>
  
  <p>However, before posting the form, I'd like to check if the date_trans field has a date that is equal to today's date. Its ok if the date taken is the client's date (i.e. it uses js), since I run a double check on the server as well.</p>
  
  <p>I'm totally lost on how to do the date comparrison in jQuery or just plain old javascript. If it helps, I am using the <a href="http://jqueryui.com/demos/datepicker/" rel="noreferrer">jquery datepicker</a></p>