问题
We currently use DateTime in our WCF contracts. This results in data being sent over as XSD DateTime.
We have a requirement that when sending to a Java system that we send over a XSD Date and not a DateTime.
How can this be done?
回答1:
First hit on Google shows me this CodeProject project, where they've written a WcfDate class that encapsulates (de)serializing from and to a xsd:date
object.
来源:https://stackoverflow.com/questions/8150109/sending-xsd-date-over-wcf