reqGetDateValue()

This procedure retrieves date value for given node string.

ParameterTypeDescription
baseNode1024A VARYING, VARSIZEMandatoryThis parameter is used to pass base node. Currently following base nodes are supproted: “IptorAPI”, “method”, “params”, “messages”, “control”, “id”
node1024A VARYING, VARSIZEOptionalNode name. This parameter is optional. If the structure is more complex then nodes must be divided by colon “:”
valueType1AOptionalReturns type of value (see types of value)
existsNOptionalReturns *ON if value exists, *OFF if value does not exit

The procedure converts character value date *iso format and returns numeric 8P 0 (YYYYMMDD):

JSON valuereturn value
‘YYYY-MM-DDTHH:MM:SS+HH:MM’YYYYMMDD
‘YYYY-MM-DDTHH:MM:SS’YYYYMMDD
‘YYYY-MM-DD’YYYYMMDD
YYYYMMDDYYYYMMDD

Types of value:

typeDescription
NNumeric
Eerror
BLANKValue does not exist

Example:

xxData = reqGetDateValue('params': 'orderDate');