You are here: Date() « PHP « IT news, forums, messages
Date()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация