In this video, learn how to calculate the exact age in years and months from a Date of Birth (DOB) field using JavaScript in Dynamics 365 / Dataverse.
We’ll walk through:
Using the birthdate field in CRM
Writing and explaining JS to get age like “24 years and 7 months”
Showing it in a custom text field (new_age)
Registering JavaScript on form events
💡 This is a great use case for showing how to enhance UX with calculated logic!
🔧 Works on:
Contact, Lead, or any custom table with a date field
📌 Don’t forget to: ✔️ Like
✔️ Comment your questions
✔️ Subscribe for more Dynamics 365 & Power Platform tips!
🔗 Code link –https://github.com/SrShaan/JS-codes/blob/main/AgeCalculation
This video consists of:
00:00-00:20 Introduction
00:20-01:31 Business use case demo
01:31-02:16 Business requirement explanation
02:16-05:52 JS code writing
05:52-07:02 Adding web Resource
07:02-08:11 Code testing
#dynamics365 #autonumbering #javascript #powerapps #crm #d365crm #uniqueid #formsoftware #powerautomate #microsoftflow #automation #dataverse #businessprocess #nocode #timeline #sendemail #createemailrecord #dynamics365crm #crm #javascript #howto #formvalidation #powerplatformwork #d365 #dynamics365ce #dataverse #javascript #powerapps #techtutorial #crmdevelopment #Xrm.WebApi #microsoft #microsoftsoftware #microsoftdynamics #microsoftdynamics365 #microsoftdynamicscrm #dataverse #powerautomate #powerappa #erpsoftware #erp #erpsolution #visualstudio #development #d365crm #powerautomateflow #javascript #businesssolutions
source