cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Find Person's Age In SnapLogic

andre_mangatal
New Contributor

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โ€ฆ

2 REPLIES 2

aleung
Contributor III

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

Hi Alan,

Thanks so much. Appreciate it!