Announcements
Hi,
I have requirement where I need to set End Date from adding number of terms (which is in months) and Start Date.
Please find the image below... as we can see the term is 6, and start date is 1/1/2021.. so I want to add 6 month to start date (i.e. 1/7/2021) and set this into the field Lease End Date
Regards,
Shoaib Khan
Hi ShoaibKhan,
You can refer following link:
Adding Days/Months/Years to Date field in CRM using JavaScript – Murali Sabbavarapu CRM Blog (wordpress.com)
Note:
the Xrm.Page has been deprecated, you need use following syntax to replace:
formContext.getAttribute(arg).getValue()
formContext.getAttribute(arg).setValue(value)
Thanks Leah Ju,
It was very helpful....
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Daniyal Khaleel 27 Most Valuable Professional
11manish 18 Super User 2026 Season 2
Syed Aqib Raza 17