Reply to Re: How do I do date math on 'mm/dd/yyyy'? Example: 10 years earlier than today.

Your name:

Reply:


Posted by Pedro Graca on 01/13/06 18:17

lwoods wrote:
> I want to calculate and display the 'mm/dd/yyyy' that is 10 years earlier
> than today.
>
> How do I do that?

Lots of ways.
Here's one

echo date('m/d/Y', mktime(0, 0, 0, date('m'), date('d'), date('Y')-10));

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!

[Back to original 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

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