Adding 1 month to Unix Timestamp
Posted: Fri May 09, 2008 11:18 am
Hey gang,
I'm trying to figure out how I can add 1-Month on to a "2008-05-09" style date. But I am converting that date to a Unix Timestamp first by doing the following:
Anyone know how I can add 1-month onto $endDate using PHP? I've been looking high and low in the PHP manual under date/time functions, but can't find anything that will do it with a unix timestamp. Thanks for any help.
I'm trying to figure out how I can add 1-Month on to a "2008-05-09" style date. But I am converting that date to a Unix Timestamp first by doing the following:
Code: Select all
$capturedDate = '2008-06-20';
$endDate = strtotime($capturedDate);
// Now I need to add 1 Month onto $endDate.