Skip to content

cDate::MaxWeekday()

Rainer Stötter edited this page May 9, 2017 · 1 revision

Method MaxWeekday( )

 public   integer libdatephp\cDate::MaxWeekday()

MaxWeekday() returns the last possible weekday ( monday .

. sunday ) for the actual week

weekday numbers range from sunday (0) to saturday (6)

Normally a week ranges from monday to sunday. But the first and last week of months and years do differ.

Example:

Returns

integer the last possible weekday of this week. 0 if the full week is available. 1 if up to monday, 2 upto tuesday ...

See also

Clone this wiki locally