Skip to main content

Notifications

Community site session details

Community site session details

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

Calculated field based on date

(0) ShareShare
ReportReport
Posted on by 163

I need to create a calculated field based on a date. I am working with a school database and I was able to create a calculated field to figure out their age. But I need to create another calculated field to identify their date at the start of the school year. This is the age calculation 

DiffInYears(asa_studentdob, Now()).

What I want to do is replace the Now() with the first day of school. If I add a date it gives me an error. Is there a way to do this?

  • RyeTeacher Profile Picture
    163 on at
    RE: Calculated field based on date

    There is no way to convert a date? It seems weird to have a custom field with the same date for every record.

  • Suggested answer
    Bipin D365 Profile Picture
    28,961 Moderator on at
    RE: Calculated field based on date

    Hi,

    You could create new custom field of type date to store the first day of school and use that in your calculated field.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,296 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,093 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans