|
XmlSchemaExportTToXmlDateTime Method
|
Makes sure date time is converted as valid XML dateTime. This is a well know problem in .Net XML serialization business.
This is maybe the easiest fix but rather manual as well. When you know that a type is dateTime in XML, you should pass the date through this.
This will strip the parts of second from the date to avoid them to be written.
Namespace: Severa.APIAssembly: Severa.SOAP.API (in Severa.SOAP.API.dll) Version: 1.0.0+9acb7434aeb2855fb928fe129dfe34575a6d8fd4
Syntax public static DateTime ToXmlDateTime(
DateTime d
)
Public Shared Function ToXmlDateTime (
d As DateTime
) As DateTime
Parameters
- d DateTime
- The date to format
Return Value
DateTimeThe date stripped to second precision
See Also