Skip to main content
We are submitting a Web-to-lead form via CURL, and it is working aside from the date fields. 

I have tried to encode it in different ways...

...&Business_License_Exp_Date__c=1509422400...

...&Business_License_Exp_Date__c=2017-10-27T12%3A00%3A00%2B05%3A00...

...&Business_License_Exp_Date__c=2017-10-27...

The field is set up as a date, however no dates are passing once the form is submittied however all other fields are. 

I suspect this is a formatting / encoding issue I've not found an answer to anywhere.

Are there any suggestions for this?
1 answer
  1. Oct 13, 2017, 8:18 PM
    Hi,

    It is not with curl but there is this interesting link: https://success.salesforce.com/answers?id=90630000000gl7rAAA

    Passing the date in the following format: "dd.MM.yyyy HH:mm" for example  "10.10.2010 12:13".  Yes there is a space between date and the time.

    What format is used for dates, times, and names in Salesforce?

    Details how to setup locale can be found here: https://success.salesforce.com/answers?id=90630000000gwckAAA

     
0/9000