Hey guys, I've never had to use date() or strtotime() before and I find the help pages on php.net really confusing.
I need to take the input of start day, start month, and start year, then add a number of days onto that to output a future date.
$startday = '01'; $startmonth = 'July'; $startyear = '2007';
$startdate = $startday.' '.$startmonth.' '.$startyear;
# So $startdate = 01 July 2007
$length = 5;
$startdate = date('d/m/Y',strtotime($startdate));
# So now $startdate = 01/07/2007 (the format I want)
How do I go about adding $length number of days onto $startdate, to output the end date in the d/m/Y format?