Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Returns the datetime offset value of the specified xpath.

DateTimeOffset myXml.EvaluateDateTime()

Returns the datetime offset value of the specified xpath.

DateTimeOffset myXml.EvaluateDateTime(xpath: string)

Arguments

string xpath
XPath to evaluate. If not specifed current node is used.

Remarks

Difference between $Xml.Evaluate and $Xml.EvaluateDateTime (when both of them are used on a Date Time type of data):

$Xml.EvaluateDateTime returns object as a data type, and it will return NULL when there is no actual value;

$Xml.Evaluate returns string as a data type and it will be empty (but not a NULL) when there is no actual value.

Finding the value of the date and time when the current customer created a form:

Example

Evaluate with an xpath

var createdAt = $Xml.EvaluateDateTime('//Customer/CreateDate');

Example

Evaluate with an xpath

var createdAt = $Xml.EvaluateDateTime('//Customer/CreateDate');
  • No labels