SetDateTime

SetDateTime 1:

This method sets the value of a property to a value of the data type DATE_AND_TIME.

Syntax

METHOD SetDateTime : SJsonValue
VAR_INPUT
  v     : SJsonValue;
  value : DATE_AND_TIME;
END_VAR

SetDateTime 2: Return value

Name

Type

SetDateTime

SJsonValue (note possible invalidity)

SetDateTime 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

DATE_AND_TIME

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp  := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetDateTime(jsonProp, dtTime);