Reply to Re: [PHP] comparing dates

Your name:

Reply:


Posted by Philip Hallstrom on 09/20/05 21:16

> Is there a quick way to compare dates in the format dd/mm/yy without
> exploding and comparing the individual parts?

Compare them in what way? Before, after, days between?

In any case, i'd look at strtotime() to convert them into timestamps, then
diff them to get the number of seconds b/n them, then go from there.

If strtotime() won't do it because it expects mm/dd/yy (consider 01/02/05
is that feb 1st or jan 2nd?) then split up the string and use mktime().

good luck.

[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

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