Adding months to a existing date?

hoaim0ng

New Member
I have a date where I need to add months to, but somehow it returns the epoch date\[code\]$duration = 28;$row['end_date'] = '2010-09-22 0000:00:00';$newEndDate = date("Y-m-d", strtotime(" +".$duration." month",substr($row['end_date'],0,10)));\[/code\]I have no idea what I'm doing wrong?
 
Back
Top