Notifications
Announcements
No record found.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 45 Super User 2025 Season 2
Daniyal Khaleel 27 Most Valuable Professional
Soundari 15