I am trying to clear a date field if the value is anytime in future. I have written the below code, which gives me error. Please suggest any alternatives.
if(Date_of_Birth >= zoho.currentdate)
{
alert "Date of Birth cannot be Future Date";
input.Date_of_Birth = "";
}