RE: [PHP] date comparison II

From: Date: Mon, 15 Jan 2001 06:25:47 +0000
Subject: RE: [PHP] date comparison II
Groups: php.general 
Request: Send a blank email to php-general+get-34572@lists.php.net to get a copy of this message
> may be I did not make my question clear about what I try to > do. Basically if I have 2 date values in the same format like > yyyy-mm-dd, can I use both values to find out if one come > before another and then display message or something? Say I > have $date1 = 20010115 and $date2 = 20010120 ( which of > course we can easily tell that $date1 come before $date2). > Can I use the sniplet below: Yep, you can use a simple > conversion in that case as long as its YMD :) Jason -- Jason Murray jasonm@melbourneit.com.au Web Design Team, Melbourne IT Fetch the comfy chair!

« previous php.general (#34572) next »