Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Calculated field based on date

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
    RyeTeacher 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
    Bipin D365 28,964 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans