×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Nov 23, 2017 10:04 AM
Views: 3
Tags: no tags
  1. $startdate = strtotime("Saturday");
  2. $enddate = strtotime("+6 weeks", $startdate);
  3.  
  4. while ($startdate < $enddate) {
  5.   echo date("M d", $startdate) . "<br>";
  6.   $startdate = strtotime("+1 week", $startdate);
  7. }