Skip to content

cDate::BOW()

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

Method BOW( )

 public   \libdatephp\cDate libdatephp\cDate::BOW()

BOW() aka "bottom of week" returns the cDate value of the day which is the first day ( sunday ) of the week the managed date is in

Example:

use libdatephp;

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

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

Returns

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

See also

Clone this wiki locally