Build String Passing Dates Not Working

Discussion created by gtosnipey on Feb 14, 2017
Latest reply on Feb 15, 2017 by emha

I have been using UpdateListItems adding entries to a list that resided in another SharePoint site using a Call Web Service.  So far it works for everything except dates.  I finally got a solution for it to pass over "People" from list to list, but can't figure out transferring a date field.  When I use the example below it does not create a new item (passing information from one date field to another on the new list).  If I remove the line for the "Example date" it works no problem and creates the new list item.  Any ideas how to format dates?


<Batch OnError="Continue" ListVersion="1" >
<Method ID="1" Cmd="New">
<Field Name="ID">{ItemProperty:ID}</Field>
<Field Name="Title">{ItemProperty:Title}</Field>
<Field Name="PMO_x0020_Primary">-1;#{ItemProperty:PMAssigned}</Field>

<Field Name="ExampleDate">{ItemProperty:ExampleDate}</Field>