0

Hey guys,

How would I work out the date range for the current week...?
Then +1 week or +2 weeks time...

I hope you understand...

So... This week...

20.02.2012
26.02.2012


+1 week will be

27.02.2012
04.03.2012

I will set an offset url variable
Thanks
Dan

2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by Danny159
0

Thanks however I want to get the dates for Monday and Sunday for the offset week.. can I do that using that?

Dan

1

Ahh its ok thanks for you help... This is what I was looking for :)

<?php
echo date("d.m.Y", strtotime("+".$_GET['offset']." week", strtotime("last Monday")));
echo "<br />";
echo date("d.m.Y", strtotime("+".$_GET['offset']." week", strtotime("this Sunday")));
?>

Dan

Votes + Comments
Thanks for sharing.
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.