Skip to content

cPeriod::GetWeekdayCount()

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

Method GetWeekdayCount( )

 public   integer libdatephp\cPeriod::GetWeekdayCount()

GetWeekdayCount() returns the number of weekdays between the starting and the ending date

Example:

use libdatephp;

$p = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) );

echo $p->GetWeekdayCount( );

Returns

integer the number of weekdays in the period of time in days

Clone this wiki locally