Recently I was asked a question:
Can we load current date and time (8 AM default) to Due field in activities in Microsoft Dynamics CRM 2011?
I got the solution… yeah!!
document.getElementById("dateInput").value = currentDate; document.getElementById("timeInput").value = "08:00";
Here is the script I wrote to populate date and time:
var d = new Date(); var date = new Date(d.getFullYear(), d.getMonth(), d.getDate(), 8, 0, 0, 0); Xrm.Page.getAttribute("scheduledend").setValue(date);
Here is the result when a new activity is created: