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: For DateTime data and blobs – PB Docs 2021 – PowerBuilder Library

Syntax 1: For DateTime data and blobs – PB Docs 2021

Syntax 1: For DateTime data and blobs

Description

Extracts a date from a DateTime value or from a blob whose first
value is a date or DateTime value.

Syntax

Argument

Description

datetime

A DateTime value or a blob in which the first value is a
date or DateTime value. The rest of the contents of the blob
is ignored. Datetime can also be an Any variable containing a
DateTime or blob.

Return value

Date.

Returns the date in datetime as a date. If datetime contains an
invalid date or an incompatible datatype, Date returns 1900-01-01. If
datetime is null, Date returns null.

Examples

After a value for the DateTime variable ldt_StartDateTime has been
retrieved from the database, this example sets ld_StartDate equal to the
date in ldt_StartDateTime:

Assuming the value of a blob variable ib_blob contains a DateTime
value beginning at byte 32, the following statement converts it to a
date value:

See also

DateTime


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