Skip to content

cDate::IsWeekend()

Rainer Stötter edited this page Apr 28, 2017 · 9 revisions

Method IsWeekend( )

 public   boolean libdatephp\cDate::IsWeekend()

IsWeekend() returns true, if the date is a weekend

Example:

use libdatephp;

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

if ( $dt->IsWeekend( ) ) do_someting( );

Returns

boolean true, if the date is weekend

See also

Clone this wiki locally