0

I have a WCF webservice I use to set some date using the following code :

foo.StartDateTime = DateTime.UtcNow;

Unfortunately, at the output of the WCF webservice, the date is the following :

<a:startDateTime>2019-01-30T08:54:13.698Z</a:startDateTime>

The issue is that the millisecond part must be on 2 characters only because our middleware can process only date like that. I know it's valid ISO 8601 but still.

How is it possible to set the date that will be in the response of the WS with only two characters ?

Flydog57
  • 6,851
  • 2
  • 17
  • 18
Xavier W.
  • 1,270
  • 3
  • 21
  • 47

0 Answers0