Hi guys, For a webservice we're calling we need to supply a datetime value as a String in a very specific ISO-complaint format: yyyy-MM-dd'T'HH:mm:ss.SSSZ However, I cannot seem to get this right with the formatDateTime function in Mendix. The user selects a date and time in an inputfield (which is of type DateTime) however the following expresion doesn't work, and causes the dateTimeFormat to revert to it's default formatDateTime($Entity/dateTime, 'yyyy-MM-dd''T''HH:mm:ss.SSSZ') I've read a topic with the same issue and an answer from Jasper was marked as accepted, however I'm still struggling with this. This is the part of the webservice we need to send: "dateTime": "2017-01-05T00:00:00.000Z" Any tips? Thanks!
Another option would be to change the wsdl of the consumed webservice. Since the format matches the datetime format that mendix uses you could just fake that it is a datetime attribute while in reality it is a string. That way you would not have to do any conversion you just map your datetime attribute from your domainmodel.