Skip to content

cDateTime::Month()

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

Method Month( )

 public   integer libdatephp\cDateTime::Month()

Month( ) returns the month part of the timestam

Example:

use libdatephp;

$dtm = new cDateTime( '2016-12-22 05:00:00' );

echo $dtm->Month( );

Returns

integer the month part of the timestamp

Clone this wiki locally