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

Today – PB Docs 125 – PowerBuilder Library

Today – PB Docs 125

Today PowerScript function

Description

Obtains the system date and, in some cases, the system time.

Syntax

Return Values

Date. Returns the current system date.

Usage

Although the datatype of the Today function
is date, it can also return the current time. This occurs when Today is
used as an argument for another function and that argument allows
different datatypes.

For example, if you call Today as an argument
to the String function, String returns
both the date and time when you use a date-plus-time display format.
A second example: if you call Today as an argument
for the SetItem function and the datatype of
the target column is DateTime, both the date and time are assigned
to the DataWindow.

Examples

This statement returns the current system date:

This statement executes some statements when the
current system date is before April 15, 2003:

This statement displays the current date in the StaticText st_date in
the corner of a window:

This statement displays the current date and time
in the StaticText st_date:

See Also

  • Now

  • Today method for DataWindows
    in the DataWindow Reference or online Help


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