https://ap1.salesforce.com/services/data/v29.0/sobjects/Contact/updated/?start=2015-01-5T17%3A34%3A55.716Z&end=2015-01-15T19%3A21%3A03.904Z gives error saying

[{"message":"Error parsing the 'start' date string. This operation requires properly formatted 'start' and 'end' date/time parameters to be specified. Please consult the documentation for the format of these date/time fields.","errorCode":"INVALID_DATE_FORMAT"}] I am using php for coding.


Datetime variables in SOQL take the format YYYY-MM-DDTHH:MM:SSZ

That's a "T" between the date and the time and a "Z" at the end - this is a date/time in UTC timezone - and there are no milliseconds.

Date variables in SOQL take the format YYYY-MM-DD

  • Works the same in API calls as well. – user735 Jan 15 '15 at 19:58
  • Is there any rest uri to get the timestamp of the server?There is a SOAP call to get servertimestamp which on using i am getting the above 'end' value – a YUY Jan 15 '15 at 20:07
  • 1
    Take a look at this: salesforce.stackexchange.com/questions/53525/… – user735 Jan 15 '15 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.