Reputation: 204
I have a proxy class generated by svcutil.exe for wcf based service. It uses the DateTime type for xsd:datetime field. DateTime converts the date to UTC if offset is provided and I loose the actual local date.
var date = DateTime.Parse("2022-05-29T21:55:00.000-07:00"); date.ToString("yyyyMMdd");
gives me the date as 30 and i need to get the date as 29.
I have looked into the svcutil documentation to enable support for DateTimeOffset but I can not get it to work with \tcv:Version35 or \async switch.
Please note that the message received by my service get automatically de-serialized to the object model generated by svcutil.
Upvotes: 1
Views: 119