fecthing the current week dates

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
ramchandev
Forum Newbie
Posts: 1
Joined: Mon Apr 21, 2008 10:27 pm

fecthing the current week dates

Post by ramchandev »

Hai all

i am a beginner for PHP programming and i am striving hard to solve this task
i need to fetch the current dates of the current week(from Monday to sunday)
i am trying with the date function still i could not resolve it.. can some one Help me in this
i will be very thankfull to you

-Ram
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: fecthing the current week dates

Post by Zoxive »

http://www.php.net/date has all the answers.

Code: Select all

echo date('l');
// Tuesday
Post Reply