You need to sign in to do that
Don't have an account?
Rameshwar
How to set the selected datetime in ReminderDateTime field of Task object ?
Hi,
I am tried to set the selected datetime value in a reminderdatetime field of task object in the following format.
1. Complete date plus hours and minutes: YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00) 2. Complete date plus hours, minutes and seconds: YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00) 3. Complete date plus hours, minutes, seconds and a decimal fraction of a second YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)
but it gives me error when i try to use above format.
---------------------------------------------------------------------------------------------------
Exception :
{faultcode:'soapenv:Client', faultstring:''2007-12-25T00:00:00+05.5:30' is not a valid value for the type xsd:dateTime', }
---------------------------------------------------------------------------------------------------
I am trying to set the value in this datetime field by using following code
+++++++++++++++++++++++++++++
var strReminderDate = document.getElementById("ReminderDateTime").value;//strReminderDate = yyyy/mm/dd
var strTime = document.getElementById("cboReminderDateTime").value //strTime = 00:00(hh:mm)
var remdateArr = new Array();
remdateArr = strReminderDate.split("/");
var remnewDate = remdateArr[2]+"/"+remdateArr[0]+"/"+remdateArr[1]+" "+strTime+"Z";
task.ReminderDateTime = new Date(remnewDate);
+++++++++++++++++++++++++++++
So how do I assign the selected date & time in the ReminderDateTime field
of Activity Object through javaScript.
Thanks & Regards
Rameshwar
it's extremely important that leading zeros are included, otherwise it will throw an error...4:37:14 will not do, it must be 04:37:14.
Hope this helps.
Exception :
{faultcode:'soapenv:Client', faultstring:''2007-12-25T00:00:00+05.5:30' is not a valid value for the type xsd:dateTime', }
---------------------------------------------------------------------------------------------------