I'm invoking a SOAP web service and some fields must respect specific rules.
I have an object with a DateTime field and i want to use it as: yyyy-MM-dd HH:mm:ss.fff
The problem occurs when milliseconds value is something like 20.
The value sent to web method is something like: 2017-21-06T18:13:50.02 instead of 2017-21-06T18:13:50.020
When i'm debugging my code, the value of milliseconds is definitely .020000 but looking at SOAP envelops the value passed ignore the zeros on the right.
There is any chance to truncate milliseconds value to always use three digits?