I might be doing this backwards, but how do I extract the date from $week5 and display $week5 + 4 days. I would like to create a function so when I pass echo displaydate($week5); it echos "February 14-18" $week0 = "2005-01-10"; $week1 = "2005-01-17"; $week2 = "2005-01-24"; $week3 = "2005-01-31"; $week4 = "2005-02-07"; $week5 = "2005-02-14"; $week6 = "2005-02-21"; $week7 = "2005-02-28"; `Doable´? Easy enough to learn how to do? John -- John Taylor-Johnston ----------------------------------------------------------------------------- °v° Université de Sherbrooke /(_)\ http://compcanlit.ca/ ^ ^ 819-821-8000, #3216 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php