Returns the day of the week for a given day number.
weekday(daycount as word) as pl_days_of_week
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.
year, month, date, daycount, hours, minutes, mincount
Day number. Base date for the day count is 1-JAN-2000 (this is day #0).
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.