You are here: A nice day out « PHP Programming Language « IT news, forums, messages
A nice day out

Posted by Paul Lautman on 05/03/06 13:32

I was trying to use the following formula to add a number of weeks to a
date, where $b is the number of weeks.
date('Y-m-d', strtotime($Expiry_Date)+$b*86400*7)
However sometimes it added one day less than it should have done.
$Expiry_Date was always a Saturday and sometimes the answer was a Saturday
and sometimes the previous Friday.

Has anyone any idea why?

TIA
Regards
Paul

 

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

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