Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1 – PB Docs 2017 – PowerBuilder Library

Syntax 1 – PB Docs 2017

Syntax 1

Description

Gets the value of the item whose type is datetime.

Applies to

JSONParser objects

Syntax

Argument

Description

objectname

The name of the JSONParser object whose item value
you want to obtain.

ItemHandle

A long whose value is the handle of the item of
JsonStringItem and JsonNumberItem type.

If the item
value is a number (UTC timestamp), the returned datetime value
will be the local datetime converted by using the local
timezone. If the item value is a string, the returned datetime
value will be the datetime without timezone
conversion.

Return value

DateTime.

Returns the datetime value of the item if it succeeds; if any
argument’s value is null, returns null; if an error occurs, the
SystemError event will be triggered.

Usage

If the item value is null, this function will throw an error,
therefore, it is recommended that before executing this function, call
GetItemType to check if the item value is null. See example 2 in
GetItemArray.

Examples

This example gets the value of the first item:

See also

GetItemArray

GetItemBlob

GetItemBoolean

GetItemDate

GetItemNumber

GetItemObject

GetItemString

GetItemTime

GetItemType


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x