DayNumber – PB Docs 2021

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 value

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

Day

DayName

IsDate

DayNumber method for DataWindows in the section called “DayNumber” 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