12-13-2018 06:19 AM
Good day Community
I would kindly like your help as I am trying to find the age of a person using the snaps and functions available in SnapLogic and using their Birthdate.
Can some one help with the above?
Thank you very much in advance.
Best regards…
12-13-2018 11:51 AM
Here is the expression and you can pass the person’s bday dynamically.
Assuming bday field is a string:
(Date.now()-Date.parse($bday))/31556926000
Assuming bday field is a date:
(Date.now()-$bday)/31556926000
12-13-2018 12:09 PM
Hi Alan,
Thanks so much. Appreciate it!