date
| From: | Alexander Ross | Date: | Wed, 24 Jul 2002 20:39:17 +0000 |
| Subject: | date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109355@lists.php.net to get a copy of this message | ||
I have a column in one of my mysql tables which holds the date & time that
the record was inserted. When I run a query later on I want to display the
date, but if the date is today or yesterday I want to display "today" or
"yesterday" instead .. how do i compare to stored date with todays date?
todays date -1? Thanks