Created
November 16, 2020 11:29
-
-
Save CubeYogi/29df27de0b981d53316d51bcd6b59d3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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