Announcements
I can calculate a contact's age from their date of birth, but I would now like to calculate their school year.
In this country the new school year starts on April 2nd and the students' age on that date determines their school grade/year.
So firstly, I need to calculate their age on April 2nd of the current year.
I then need to link this to their school grade i.e. 'if age 13 on April 2nd of current year' automatically populates another field with 'Junior High School Grade 2'
Any help with formulas for Dynamics 365 would be appreciated.
I agree with the authors above. I used the js function that was for my project. But the js function wasn't activated for a long time until I used an additional plugin for it. I got the manual from my programming teacher, who was implementing this project with me. I want to show him the code in the picture above. I think he'll approve and work on the implementation.
Hi partner,
According to your description, I suggest you to use js function to do this beacuse it's very convenient and it can be flexible according to your needs.
Here is the sample code for you.
You said that you only want this function run at 04-02, but in D365 we could not specifies that the code is executed on a particular date, so I add this function in form onload event and if today is 04-02, it will trigger the function.
Hope it helps.
Best Regards,
Leo
André Arnaud de Cal...
294,217
Super User 2025 Season 1
Martin Dráb
232,978
Most Valuable Professional
nmaenpaa
101,158
Moderator