web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Calculating Age

(0) ShareShare
ReportReport
Posted on by 10
I am using D 365 Sales
 
Trying to calc age
Birthdate is set a Date-Time - Display Date
 
DIFFINYEARS(birthdate, NOW())
Error: "you can't use NOW() which is of type datetime with the current function"
 
Tried 
RoundDown((DIFFINYEARS(birthdate, UTCToday())),0)
Error: "UTCToday() is not a function"
 
Also tried Today() , get same error that it "is not a function"
Categories:
I have the same question (0)
  • Adis Profile Picture
    6,069 Super User 2025 Season 2 on at
    Hi,
     
    Where are you trying to do this exactly? In Power Power platform or somewhere in D365FO Sales? 
     
    Kind regards, Adis
  • TM-07052204-0 Profile Picture
    10 on at
    I am assuming Power Platform
  • Suggested answer
    Jimmy Passeti Profile Picture
    674 Most Valuable Professional on at
    Hello,
     
    Try this:
    DateDiff('DATE', Now(), TimeUnit.Years)
    I hope it helps.
     
    Regards,
    Jimmy Passeti | Microsoft MVP
    ✅ Please mark as Verified if this answered your question!
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,529 Super User 2025 Season 2 on at

    Go to your Contact (or related) entity" Create a new field:

    • Type: Whole Number

    • Field Type: Calculated

    In the calculation formula editor: Use this expression: DiffInYears(birthdate, UtcNow())

    Thanks, Ramesh

    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 48 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans