title: To check whether current date is not less than present date in dd/MM/yyyy format
body: <p>I am working on JavaScript validation where I am validating whether a <code>textbox</code> date is equal to the current date or not. </p>
  
  <p>If its greater or equal to today's date than do something, if its less than today's date then show error message. </p>
  
  <p>Note: In my <code>textbox</code> I have converted date into <code>dd/MM/yyyy</code> format. So I need to check <code>textbox</code> date with current date in <code>dd/MM/yyy</code> format only. Here is my code:</p>
  
  <pre><code>function ValidateDate() {
  var EffectiveDate = $.trim($("[id$='txtFromDate']").val());
  var Today = new Date();
  if(EffectiveDate&lt;Today())
  {
       //Show Error Message
  }
  else
  {
      //Do something else
  }
  </code></pre>
  
  <p>I need the date to be in <code>dd/MM/yyyy</code> format for checking my <code>textbox</code> date, so my <code>Today</code> value has to be in <code>dd/MM/yyyy</code> format only.</p>