You need to sign in to do that
Don't have an account?
John Vaughan
xsd:dateTime
Call to webservice at https://na17.salesforce.com/services/Soap/u/28.0/00Do0000000Zb9Z failed. Reported error:
The webservice call failed. The web service returned a SOAP Fault:
Code: soapenv:Client
Message: '02/03/2015 11:20 AM' is not a valid value for the type xsd:dateTime
I use jitterbit to get all of my order/customer data into Salesforce for CRM.
All of my OrderTime on orders read as: 12/30/1899 3:25 PM
I have been trying to fix this using CVTDate
FOrmula such as:
<trans>
CVTDate(Now(),"?m/?d/yyyy HH:MM:SS AP", "mm/dd/yyyy HH:MM AP")
</trans>
My ordertime data from my db reads as 2/3/2015 9:30:35 AM
What CVTDate line can I use that works? Ive tried like 8 ways.
The webservice call failed. The web service returned a SOAP Fault:
Code: soapenv:Client
Message: '02/03/2015 11:20 AM' is not a valid value for the type xsd:dateTime
I use jitterbit to get all of my order/customer data into Salesforce for CRM.
All of my OrderTime on orders read as: 12/30/1899 3:25 PM
I have been trying to fix this using CVTDate
FOrmula such as:
<trans>
CVTDate(Now(),"?m/?d/yyyy HH:MM:SS AP", "mm/dd/yyyy HH:MM AP")
</trans>
My ordertime data from my db reads as 2/3/2015 9:30:35 AM
What CVTDate line can I use that works? Ive tried like 8 ways.
Not sure if i can solve your problem but have a recommendation:
Based on the code above, looks like the conversion is not in the acceptable format by salesforce api, can you try the following format: YYYY-MM-DD followed by time?
For more details on DateTime, have a look at below links:
http://www.salesforce.com/us/developer/docs/officetoolkit/Content/sforce_api_calls_soql_select_dateformats.htm
and
http://www.w3.org/TR/NOTE-datetime
1994-11-05T08:15:30-05:00 (YYYY-MM-DDTHH:MM:SS-GMT) or
1994-11-05T08:15:30z which is the zulu converted time.
For your case just concentrate the following line
var dateTime = new Date(new Date().getTime() - new Date().getTimezoneOffset() * 60000).toISOString();