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

DayName – PB Docs 2021 – PowerBuilder Library

DayName – PB Docs 2021

DayName

PowerScript function

Description

Determines the day of the week in a date value and returns the
weekday’s name.

Syntax

Argument

Description

date

A date value for which you want the name of the day

Return value

String.

Returns a string whose value is the weekday (Sunday, Monday, and so
on) of date. If date is null, DayName returns null.

Usage

DayName returns a name in the language of the runtime files
available on the machine where the application is run. If you have
installed localized runtime files in the development environment or on a
user’s machine, then on that machine the name returned by DayName is in
the language of the localized files.

For information about localized runtime files, which are available
in French, German, Italian, Spanish, Dutch, Danish, Norwegian, and
Swedish, see the section called “Localizing
the product”
in Application Techniques.

Examples

These statements evaluate the date literal 2003-07-04 and set
day_name to Sunday:

These statements check to be sure the date in sle_date is valid, and
if so set day_name to the day in sle_date:

See also

Day

DayNumber

IsDate

DayName method for DataWindows in the section called “DayName” in DataWindow Reference.


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