mk time (I want to display week end day)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adeelzia
Forum Newbie
Posts: 22
Joined: Thu Jul 06, 2006 5:31 pm

mk time (I want to display week end day)

Post by adeelzia »

I want to show in a page the week ending day i.e. sunday.........means that if today is 02 August 2006 then sunday is on 06th of august how to show 06 August 2006 using mktime() or any other function.Thanks.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

have you tried strtotime("next sunday")
Post Reply