Syntax

AddDateTime(name, date_time)

Description

Use this method to add a Datetime value to the JSON Object.

Parameters

Name Description
name Specifies the name of the datetime that needs to be added as a string.
date_time Specifies the datetime to add to the JSON Object as a Datetime type.

Returns

None.

Example

Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddDateTime("CurrentDate", %Datetime);