Is there a way to get the begginning and end of the week with php?
I know date("W"); gives you the week number, but what I need is something like:
August 6-12
Or July 30 - August 5
Is there an easy way to do this, or do I have to make my own script?
Thanks,
apg88
Get week's in PHP
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Have a read through the date and time functions of PHP in the PHP Manual. You may need to create your own function.