Re: Date comparison going wrong, wrong, wrong
| From: | Jim Giner | Date: | Sun, 11 Nov 2012 21:50:37 +0000 |
| Subject: | Re: Date comparison going wrong, wrong, wrong | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319685@lists.php.net to get a copy of this message | ||
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";