weekday Function

Function:

Returns the day of the week for a given day number.

Syntax:

weekday(daycount as word) as pl_days_of_week

Returns:

One of pl_days_of_week constants:

1 — PL_DOW_MONDAY: Monday.

2 — PL_DOW_TUESDAY: Tuesday.

3 — PL_DOW_WEDNESDAY: Wednesday.

4 — PL_DOW_THURSDAY: Thursday.

5 — PL_DOW_FRIDAY: Friday.

6 — PL_DOW_SATURDAY: Saturday.

7 — PL_DOW_SUNDAY: Sunday.

See Also:

year, month, date, daycount, hours, minutes, mincount


Part

Description

daycount

Day number. Base date for the day count is 1-JAN-2000 (this is day #0).


Examples

Tibbo BASIC
dim w as pl_days_of_week
w = weekday(0)  ' result will be  PL_DOW_SATURDAY - the was the day of the week for the 1st of January 2000.

weekday Function

Examples