Posted by John Taylor-Johnston on 01/16/05 01:24
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
Navigation:
[Reply to this message]
|