Skip to content

cPeriod::GetFirst()

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

Method GetFirst( )

 public   \libdatephp\cDate libdatephp\cPeriod::GetFirst()

GetFirst() returns the starting date of the period of time

Example:

use libdatephp;

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

echo $p->GetFirst( )->AsSQL( );

Returns

\libdatephp\cDate a cDate value

Clone this wiki locally