You are here: strtotime - Monday of current week « PHP Programming Language « IT news, forums, messages
strtotime - Monday of current week

Posted by Chris on 10/11/07 22:05

I am trying to output Monday of the current week i.e. if Monday is the
8th I want to display 'Monday 8th' for any date between Monday 8-14th.

I would appreciate any help, the code below is heading in the right
direction but doesn't quite give me the results I am looking for.

$givenday = mktime(0,0,0,10,08,2007);
$Monday = strtotime("Monday this week",$givenday);
echo date("j M Y H:i:s", $Monday);

Cheers,

Chris

 

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

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