Re: echoing date of first and last day of current week.
| From: | BigDog | Date: | Mon, 18 Nov 2002 10:43:48 +0000 |
| Subject: | Re: echoing date of first and last day of current week. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124949@lists.php.net to get a copy of this message | ||
Probably the best way is to convert the times all into seconds and then
do the math to get the last day of the week.
Should be relatively easy...
HTH
On Mon, 2002-11-18 at 05:57, Noodle Snacks wrote:
> I want to get the unix timestamps of the first and last days of this week...
>
> Currently I have this:
>
> echo 'Words for the week from '.date('jS F Y',strtotime("last
> sunday")).'
> to '.date('jS F Y',strtotime ("next
> saturday")).'.<br>';
>
> on saturday this showed the 10th to 23rd... Is there a good way to do this
> mathematically (for speed) or can someone think of a better string to parse?
>
>
> --
> JJ Harrison
> lizner2002@yahoo.com.au
--
.: B i g D o g :.