I think you should convert them to dates--otherwise the server compares
them as strings.


Marco

-- 
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com


On Sun, 2002-11-10 at 09:56, Dhaval Desai wrote:
> Hi!
> 
> If you try this in php:
> 
> 2002-01-6 > 2002-01-10
> returns true
> 
> 2002-01-6 > 2002-01-9
> returns false
> 
> Jut a leading 0 in the date makes it false...this is really strange..
> 
> Any comments?
> 
> 
> 
> 
> 
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



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

Reply via email to