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.UtilsAssembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax public static void GetIso8601DateTimeNodeValue(
XmlNode xml,
string xpath,
ref DateTime value,
bool convertToLocalTime = true
)
Public Shared Sub GetIso8601DateTimeNodeValue (
xml As XmlNode,
xpath As String,
ByRef value As DateTime,
Optional convertToLocalTime As Boolean = true
)
public:
static void GetIso8601DateTimeNodeValue(
XmlNode^ xml,
String^ xpath,
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