I've been banging my head against the wall for a bit too long now.
I've been using the lists.asmx webservice for my Sharepoint server (2007, so no client object model unfortunately) and I've been able to successfully update every desired item field on the server...except for dates. And I'm not referring to read-only dates. Just dates that can be entered in mm/dd/yyyy format for a list item on the site itself.
I'm in C#, and if anyone can see a potentially simple correction to my CAML (which is where the problem is, I'm fairly sure) I would most appreciate it.
batchElementGlobal.InnerXml = "<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='Title'>" + tempExperiment.ProjName + "</Field></Method>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='Experiment_x0020_Lead'>" + tempExperiment.ProjLead + "</Field></Method>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='Technology_x0020_Partner'>" + tempExperiment.TechPartner + "</Field></Method>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='IT_x0020_Functional_x0020_Area'>" + tempExperiment.FunctionalArea + "</Field></Method>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='Start_x0020_Date'>" + strProjStartDateTime + "</Field></Method>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='End_x0020_Date'>" + strProjEndDateTime + "</Field></Method>" +
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + GlobalVariables.ID + "</Field>" +
"<Field Name='Read_x0020_Out_x0020_Date'>" + strProjReadoutDateTime + "</Field></Method>" +
(This is a stripped down version. Wanted to show how I formatted multiple-words fields and that they work. The strProjXXXDateTime strings are all in the same format. eg: "6/18/2012")
There may be some sort of formatting for dates on SharePoint's end, but I figured that since you can input the date in a standard string format on the site itself, using a string would totally be an option. Perhaps not? If you need anything else please let me know.
Thanks!
(Sidenote -- in past tests, I think I concluded that each field needs its own method section, which I thought was odd. Even though it's updating one item, it needed the differentiation. Was that just a fluke? Can I put all of the field's under one method?)