Date Comparison

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

 



How to I ensure a variable date is not in the past, compared to the
current date? Here's how I'm trying, unsuccessfully:

$nextdate = "8/2/2009";

if(strtotime($nextdate)<=getdate()){

	echo "Sorry, your next evaluation date cannot be in the past,
Click BACK to continue.";
	exit;
	
}

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