Skip to content

cDate::AddDays()

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

Method AddDays( )

 public   mixed libdatephp\cDate::AddDays(integer $diff)

AddDays() adds / subtracts $diff days to / from the managed date

Example:

use libdatephp;

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

$dt->AddDays( 12 )->AsSQL( );

Arguments

  • $diff integer - <p>the number of days to add / subtract. It defaults to 1</p>

See also

Clone this wiki locally