Hi Elliot, > I need a function to create the dates of previous > Fridays, in 21-JUL-2003 format.
It'll be different depending on what you want to happen if you pass a Friday timestamp to the function, but it should be something like: function friday($ts) { while (date("w", $ts) != 5) $ts -= 86400; return date("d-m-Y", $ts); } Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php