[PHP] Re: date field

2005-08-11 Thread John Taylor-Johnston
Thanks Ben! John Ben Ramsey wrote: In PHP, you could do something like: $updated = strtotime($db_result['updated']); $one_year_ago = strtotime('-1 year'); if ($updated < $one_year_ago) { // updated date is older than a year ago } John Taylor-Johnston wrote: I have a field 'updated

[PHP] Re: date field

2005-08-10 Thread Ben Ramsey
In PHP, you could do something like: $updated = strtotime($db_result['updated']); $one_year_ago = strtotime('-1 year'); if ($updated < $one_year_ago) { // updated date is older than a year ago } John Taylor-Johnston wrote: I have a field 'updated' How can I tell if the date is older t