How to Calculate Exact Age (Years & Months) from Date of Birth in Dynamics 365 using JavaScript – YouTube

Manish chauhanYouTube3 days ago41 Views



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

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
April 2025
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30     
« Mar   May »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...