EvaluateDateTime¶
Returns the date-time offset value of the current node.
1 | |
Returns the date-time offset value of the node selected by the specified XPath expression.
1 | |
Parameters¶
string xpath
The XPath expression to evaluate. If not specified, the current node is used.
Returns¶
The date-time offset value of the selected node.
Remarks¶
The difference between $Xml.Evaluate and $Xml.EvaluateDateTime when both are used on a date-time value is: - $Xml.EvaluateDateTime returns an object and returns NULL when there is no actual value; - $Xml.Evaluate returns a string and returns an empty value (but not NULL) when there is no actual value. The difference between $Xml.Evaluate and $Xml.EvaluateDateTime when both are used on a date-time value is: - $Xml.EvaluateDateTime returns an object and returns NULL when there is no actual value; - $Xml.Evaluate returns a string and returns an empty value (but not NULL) when there is no actual value.
Read a date-time value from a selected node¶
1 | |