I ended up using this:

$time = time();
$weekday = date('w',$time);
$suntimestamp = $time - ($weekday * 86400);
$sattimestamp = $suntimestamp + 604800;
 echo 'Words for the week from '.date('jS F Y',$suntimestamp).' to
'.date('jS F Y',$sattimestamp).'.<br>';


--
JJ Harrison
[EMAIL PROTECTED]

"Noodle Snacks" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to