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 :
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?

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

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

  • RyeTeacher Profile Picture
    163 on at

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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans