Expand my Community achievements bar.

Compare Current date with user entered date in a date field


Level 3

Hi ,

How do I compare the current date with the user entered date in javascript. The task is not to allow user to select the past date in a date/time field

Thanks and Regards,

Ajay Yada

1 Reply


Level 10

You can use FormCalc to compare the user input.

Put this script into the exit:Event of the date field.