Skip to content

cDate::WOY()

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

Method WOY( )

 public   integer libdatephp\cDate::WOY()

WOY() returns the ISO number of the week in the year the date belongs to. Same as NOW()

Example:

use libdatephp;

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

echo $dt->WOY( );

Returns

integer the number of he week

See also

Clone this wiki locally