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

SetToday – PB Docs 150 – PowerBuilder Library

SetToday – PB Docs 150

SetToday PowerScript function

Description

Sets the value that is used by the calendar as today’s
date.

Controls

DatePicker, MonthCalendar controls

Syntax

Argument

Description

controlname

The name of the control for which you
want to set the Today date

d

The date you want to specify as the Today
date

Return Values

Integer. Returns 0 for success and -1
for failure.

Usage

By default, the current system date is set as the Today date.
You can use the SetToday function to specify
a different date. If the date is set to any date other than the
current system date, the following restrictions apply:

  • The control does not automatically update the Today selection
    when the time passes midnight for the current day.

  • The control does not automatically update its display
    based on locale changes.

Examples

This example gets a date from an EditMask control
and sets it as the Today date in a MonthCalendar control:

See Also


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