Skip to main content
Nintex Community Menu Bar
Question

Calculate Age with UI only field

  • July 10, 2024
  • 9 replies
  • 35 views

Forum|alt.badge.img+17

I’m trying to calculate age based on today minus date of birth in a UI only field but I’m not having luck getting the correct result I do get a result, but it is huge. I have tried assuming graduations of days, hours, minutes, and even seconds, but the number is still way too large. Anyone have ideas of how I would formulate this in UI only?

This topic has been closed for replies.

9 replies

Forum|alt.badge.img+17
  • Nintex Employee
  • July 10, 2024

Javascript calculates dates in milliseconds… 


Forum|alt.badge.img+17

ah… thanks…


Forum|alt.badge.img+10

Just thought I’d post the formula to calculate someones current age based on their birth date.

FLOOR((TODAY() - {{BirthDate__c}})/ (365*3600 * 24 * 1000))

Forum|alt.badge.img+17
  • Nintex Employee
  • July 10, 2024

Thanks for posting this Bill. 


Forum|alt.badge.img+18

Hey guys. We probably don’t want the official response for this question to be “ah… thanks…”
😉


Forum|alt.badge.img+10

Good catch Matt!


Forum|alt.badge.img+17

It was a well crafted response 😉


Forum|alt.badge.img+10

The Officially correct answer to calculate someones current age based on their birth date is:

FLOOR((TODAY() - {{BirthDate__c}})/ (365*3600 * 24 * 1000))

I take full credit. I would never think to say it is Bill McCullough who is the Skuid Wizard. I am the Walrus. Coo Coo CaChoo.


Forum|alt.badge.img+10

Our community doesn’t allow a comment to be official. Only replies. Thus, ah… thanks… became official because Bill’s comment was below it.