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

Your name:

Reply:


Posted by Mladen Gogala on 01/13/06 17:26

On Fri, 13 Jan 2006 07:48:34 -0800, lwoods wrote:

> Thanks, but I don't need to subtract seconds, really. I need something that
> looks like this:
>
> I need to be able to:
>
> 1. Subtract 10 years from today

That only means that you have to extract enough seconds. Try with
3650*24*3600


> 2. Display that value in 'mm/dd/yyyy' format

And the Date class has a way of doing that.

--
http://www.mgogala.com

[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

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