Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I need to subtract 5 hours 30 min from the final date
var finalDate = Date.parse(dateTime); var dateslot = new Date(finalDate).subTime(5, 30);// I am using this but it is not supported Xrm.Page.getAttribute("preferredvisittime").setValue(dateslot);
How to do that please help me
You can try to use getHours() and getMinutes() to achieve it. Just like following shown:
var date = new Date("Fri Jan 15 2016 00:00:00");
Has the problem been solved? Any updates?
Please click Yes under "Did this answer your question?" to close this thread.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Business Applications communities