function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dereksfdereksf 

Convert string to Salesforce API date type

Hello,

 

I'm having some problems with creation of a lead using the Salesforce webservice API using .NET.

 

I can create the lead fine, but some of the fields are not getting updated. I think it is because my types are not matching although the API doesn't give me any errors.

 

One of my problems is with a text field in a web form that takes a string in the form of mm/dd/yyyy.

 

When I try to update a custom date field in salesforce (birthdate) it just comes up blank. I have tried to convert the string to type date, but it doesn't seem to work either.

 

Any help would be appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
dereksfdereksf

This was solved by the following post...

 

http://community.salesforce.com/sforce/board/message?board.id=NET_development&thread.id=7360

 

I didn't have the specified property set to "True".