Skip to content

cDate::BOY()

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

Method BOY( )

 public   \libdatephp\cDate libdatephp\cDate::BOY()

BOY() aka "bottom of year" returns the cDate value of the day which is the first day ( January 1st ) of the year the managed date is in

Example:

use libdatephp;

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

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

Returns

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

See also

Clone this wiki locally