Skip to content

Instantly share code, notes, and snippets.

@CubeYogi
Created November 16, 2020 11:29
Show Gist options
  • Save CubeYogi/29df27de0b981d53316d51bcd6b59d3b to your computer and use it in GitHub Desktop.
Save CubeYogi/29df27de0b981d53316d51bcd6b59d3b to your computer and use it in GitHub Desktop.
//Getting Contact form entries
//Replace your form and fields link name if needed
for each contact in Contact_Form[date_of_birth != null]
{
//Calculating Age
from_year = contact.date_of_birth.getYear();
to_year = zoho.currenttime.getYear();
age_calculated = to_year - from_year;
//Updating age
contact.age = age_calculated;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment