Adding seven days to date
Posted: Wed Oct 05, 2005 9:24 am
Hi
I want to list all the mondays in the year, I can find the 1st using
But how do I add 7 days to loop through this in Y-m-d format for the next year? Results will be displayed in a dropdown.
I want to list all the mondays in the year, I can find the 1st using
Code: Select all
$date = date('Y-m-d',strtotime('this monday',mktime(0,0,0,1,1,2005)));