Skip to content

cDate::Weekday()

Rainer Stötter edited this page May 9, 2017 · 10 revisions

Method Weekday( )

 public   integer libdatephp\cDate::Weekday()

Weekday() returns the weekday of the date Is the same eas DOW( )

The zero-based representation of the weekday will be returned (DOW_SUNDAY = 0 .. DOW_SATURDAY = 6).

Example:

use libdatephp;

$dt = new cDate( 11, 23, 2016 );

echo $dt->Weekday( );

Returns

integer the weekday

See also

Clone this wiki locally