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

DayNumber – PB Docs 126 – PowerBuilder Library

DayNumber – PB Docs 126

DayNumber PowerScript function

Description

Determines the day of the week of a date value and returns
the number of the weekday.

Syntax

Argument

Description

date

The date value from which you want the
number of the day of the week

Return Values

Integer. Returns an integer (1-7) representing
the day of the week of date. Sunday is day
1, Monday is day 2, and so on. If date is null, DayNumber returns null.

Examples

These statements evaluate the date literal 2000-01-31
and set day_nbr to 4 (January 31,
2000, was a Wednesday):

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

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