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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
*/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux