note 6281 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:37:01 +0000
Subject: note 6281 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20042@lists.php.net to get a copy of this message
Dates are compared field by field. So if I do <br> if ($onedate < $otherdate) { ... }<br> on a date("d-m-Y") and the first dayfield is smaller than the second, PHP will not look any further. Using a date("Y-m-d") solves this.

« previous php.notes (#20042) next »