Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Calculate Age using Power Automate using expression no-code

Calculate Age using Power Automate using expression no-code

In our projects we write custom codes to calculate age of a specific customer either using JavaScript or custom workflows. Sometime we use plugins. But using Power Automate Flow we can build a flow which will calculate the age by date of birth just using Expression steps.

Sample Code

div(div(sub(ticks(variables('Today')),ticks(triggerBody()['date'])),864000000000),365.25)

Format

div(div(sub(ticks(<Current Date>),ticks(<Birthdate>),864000000000),365.25)

Watch the video here.

I hope this helped you.