From a database, the contents of a field named user_lastvisit are displayed onto a page. We need to compare that date from the database with the current date and then display something like, "last login was x days ago."
For example, if the date in the database is 8/7/2006, and current date is 28/7/2006 then the message displayed would be "last login was 20 days ago"
Is there any way to do this?