Skip to content

cDate::FromDate()

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

Method FromDate( )

 public   mixed libdatephp\cDate::FromDate($obj)

FromDate() sets the internal day according to another cDate

Example:

use libdatephp;

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

$dt->FromDate( new cDate( 1, 11, 2014 ) );

Arguments

  • $obj mixed - <p>cDate the cDate to copy from</p>

See also

Clone this wiki locally