Howdy,
quick question: how would I increment the month of the date('Y, m') by one, so that I return next month's date instead of this month's?
Thx,
Ras.
echo( date("Y-m-d", strtotime("now +1 month")) );
You can edit "now +1 month" to use an existing date if you want. For instance:
$my_date = "2003-12-25"; echo( date("Y-m-d", strtotime("$my_date +1 month")) );
Works, thanks!