Answers for "php get all the mondays of the year"

PHP
0

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);
Posted by: Guest on August-05-2021

Code answers related to "php get all the mondays of the year"

Browse Popular Code Answers by Language