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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to calculate date field to show years in another field?

(0) ShareShare
ReportReport
Posted on by 26

Hello,

I have a date field called Hire Date and for example, this field has the date of 1/1/2012.

Then I have another field called, "# of years with current employer"

I need something that would calculate the Hire Date field to today's date and just show the number of years in the "# of years with current employer field"

So for this example it would show 10.

It would then need to be ran daily on all employee records.

How can I do this?

Thank you.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi USA80,

    You can achieve it through calculated field, The following are my test steps:

    Step1: Set the Hire Date field to Date and Time type and the # of years with current employer field to Whole Number Type, and add the set two fields to the form.

    Step2: Define calculated columns.

    pastedimage1647230244576v1.png

    pastedimage1647230263397v2.png

    Step3: The test results show that it can be achieved.

    pastedimage1647230310671v3.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans