Click or drag to resize

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.API
Assembly: Severa.SOAP.API (in Severa.SOAP.API.dll) Version: 1.0.0
Syntax
public static DateTime ToXmlDateTime(
	DateTime d
)

Parameters

d  DateTime
The date to format

Return Value

DateTime
The date stripped to second precision
See Also