Jump to content

finding week begining and ending days


project3

Recommended Posts

You can also do:

<?php
$lm = strtotime('last monday');
$ns = strtotime('next sunday');
echo 'Today: ' . date('l, F jS, Y') . '<br>';
echo 'Start of week: ' . date('l, F jS, Y',$lm) . '<br>';
echo 'End of week: ' . date('l, F jS, Y',$ns) . '<br>';
?>

 

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.