Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Output the dates for the next six Saturdays
SUBMITTED BY:
henry1874w
DATE:
June 17, 2017, 1:29 p.m.
FORMAT:
Text only
SIZE:
274 Bytes
Raw
Download
Tweet
HITS:
248
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$startdate=strtotime("Saturday");
$enddate=strtotime("+6 weeks", $startdate);
while ($startdate < $enddate) {
echo date("M d", $startdate) . "<br>";
$startdate = strtotime("+1 week", $startdate);
}
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus