Click or drag to resize
XmlHelperGetIso8601DateTimeNodeValue Method
Gets an XML node's ISO-8601 value and stores it to a DateTime variable (converted to local time automatically).

Namespace: com.softwarekey.Client.Utils
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
public static void GetIso8601DateTimeNodeValue(
	XmlNode xml,
	string xpath,
	ref DateTime value,
	bool convertToLocalTime = true
)

Parameters

xml
Type: System.XmlXmlNode
The root XML node.
xpath
Type: SystemString
The XPath of the node to parse.
value
Type: SystemDateTime
The DateTime parsed from the XML node. This will be set to DateTime.MinValue if parsing fails.
convertToLocalTime (Optional)
Type: SystemBoolean
Optional parameter to signify if the date is converted to local time. The default value is true. Set to false to skip the conversion to local time.
See Also