Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get all the mondays of the year

$endDate = strtotime($endDate);
for($i = strtotime('Monday', strtotime($startDate)); $i <= $endDate; $i = strtotime('+1 week', $i))
    echo date('l Y-m-d', $i);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #mondays #year
ADD COMMENT
Topic
Name
5+5 =