Skip to content

cDate::EOY()

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

Method EOY( )

 public   \libdatephp\cDate libdatephp\cDate::EOY()

EOY() aka "end of year" returns the cDate value of the day which is the last day ( December 31th ) of the year the managed date is in

Example:

use libdatephp;

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

echo $dt->EOY( )->AsSQL( );

Returns

\libdatephp\cDate the last day of the year of the managed date

See also

Clone this wiki locally