javascript current date validation example

 

 

 

 

The problem is - The below code should work with respect to that of current date.