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...


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
.: B i g D o g :.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to