Skip to content

cPeriod::GetLast()

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

Method GetLast( )

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

GetLast() returns the ending date of the period of time

Example:

use libdatephp;

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

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

Returns

\libdatephp\cDate a cDate value

Clone this wiki locally