Page 1 of 1

Get week's in PHP

Posted: Tue Aug 01, 2006 9:05 am
by apg88
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

Posted: Tue Aug 01, 2006 9:13 am
by RobertGonzalez
Have a read through the date and time functions of PHP in the PHP Manual. You may need to create your own function.