Forum Discussion

andre_mangatal's avatar
andre_mangatal
New Contributor
7 years ago

Find Person's Age In SnapLogic

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

  • aleung's avatar
    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