Discussion
Problems with sending xml message with element in dateTime format
How can I send an xml message which contains element which has got dateTime format ?
I need to send value like this "2015-09-29T08:30:28.000+02:00"
In case that the property I'm sending has got Text format in Pega, I've got an error message when creating response: "String was not a datetime" (dateTime format according to xsd schema is correct)
In case that the property I'm sending has got dateTime format I need to convert my value into dateTime. I tried it using function formatDateTime, and toDateTime but It does not work for my value. I could get through validation without any error but in my response I got just default dateTime value "1970-01-01T00:00:00.000Z"
I would appreciate any help
I think the correct format is 'yyyyMMddThhmmss.eee' were yyyy is year, MM is month, dd is day, hh is hour (24 hours format) mm is minute, ss is second and eee is millisecond, Zi stimezone difference from UTC. In your case please try '20150929T083028.000+0200' or maybe without the time zone (''20150929T063028.000")