Notifications
Announcements
No record found.
Can someone tell me how to assign this to a field in CRM 2016? I am having issues setting the value via javascript.var now = new Date(); var strNow = (now.getMonth() + 1) + "/" + now.getDate() + "/" + now.getFullYear();
*This post is locked for comments
Hello,
What's the type of the field you want your value assign to?
a date time field in CRM like the order date
Hi, try with this.
this will help you
var now = new Date();
var strNow = (now.getMonth() + 1) + "/" + now.getDate() + "/" + now.getFullYear()+" 00:00:00"
ok - anyway to get the next business day?
Here is the code you can use:
now.setDate(now.getDate() + 1);
if (now.getDay() == 0))
else if (now.getDay() == 6))
now.setDate(now.getDate() + 2);
//now variable contains the next business day
Please go through the following URL for working days javscript:
mscrmtechie.blogspot.com.au/.../set-due-date-by-considering-working.html
You can also get an idea from following URLs:
www.powerobjects.com/.../populating-due-dates-with-javascript
crmbusiness.wordpress.com/.../crm-2011-javascript-to-set-the-current-date-and-time
stackoverflow.com/.../find-the-number-of-business-days-between-two-dates-in-microsoft-dynamics-crm-201
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.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2