Skip to content

cDate::SetDate()

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

Method SetDate( )

 public   mixed libdatephp\cDate::SetDate(mixed $m, integer $d, integer $y)

SetDate() sets the date

Example:

use libdatephp;

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

$dt->SetDate( 4, 21, 2012 );

Arguments

  • $m mixed - <p>the month [1..12] or a cDate variable</p>
  • $d integer - <p>the day [1..31]</p>
  • $y integer - <p>the year</p>

See also

Clone this wiki locally