|
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+cc2a5357b8231e24c5fd7606bb1e71a1374ad1e9
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