Re: Date comparison going wrong, wrong, wrong

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

 




BTW - this is the code I used to test out your process:

<?
$dt_format = "D, M jS, Y g:i:s a";
$todaydate = date($dt_format);
$showenddate = strtotime("11/18/12 16:00:00");
if ($todaydate > $showenddate)
    echo "The date of the show has not yet arrived";
else
    echo "The show has ended";

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux