Re: Strtotime works for date comparisons on nonUnix--thank you :)

From: Date: Fri, 07 Nov 2003 19:58:57 +0000
Subject: Re: Strtotime works for date comparisons on nonUnix--thank you :)
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31497@lists.php.net to get a copy of this message
On Saturday 08 November 2003 03:43, Karen Resplendo wrote: > $today = Strtotime(date("m/d/Y")); > $expires=Strtotime(odbc_result($data,"Expires")); > > If ($today <= $expires) > { > echo "<br><br>License has not expired<br><br>"; > } > Else > { > echo "<br><br>License has expired<br><br>"; > } > > :-P Not sure what your subject is trying to convey, but strtotime() converts dates to unix timestamps, and works on all systems that PHP runs on - Windows/Unix/Linux/whatever. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Take your work seriously but never take yourself seriously; and do not take what happens either to yourself or your work seriously. -- Booth Tarkington */

« previous php.db (#31497) next »