Try out this code...
Code: Select all
echo date('d F Y', strtotime('next monday', strtotime('15 July 2005')));regards tores
Moderator: General Moderators
Code: Select all
echo date('d F Y', strtotime('next monday', strtotime('15 July 2005')));Code: Select all
echo date('d F Y', strtotime('monday', strtotime('15 July 2005')));Code: Select all
echo date('d F Y', strtotime('last monday', strtotime('15 July 2005')));
echo "<br>";
echo date('d F Y', strtotime('monday', strtotime('15 July 2005')));
echo "<br>";
echo date('d F Y', strtotime('next monday', strtotime('15 July 2005')));Code: Select all
echo date('d F Y', strtotime('last monday', strtotime('15 July 2005'))); // 11th
echo "<br>";
echo date('d F Y', strtotime('this monday', strtotime('15 July 2005'))); // 18th
echo "<br>";
echo date('d F Y', strtotime('next monday', strtotime('15 July 2005'))); // 25th