MYSQL - Selecting how many "Days Old" a field is.
Posted
by Joe
on Stack Overflow
See other posts from Stack Overflow
or by Joe
Published on 2010-03-23T05:21:04Z
Indexed on
2010/03/23
5:33 UTC
Read the original article
Hit count: 188
How can I select how many days old a field is based on it's "DateAdded" field?
eg.
SELECT DAYSOLD(tbl_stuff.DateAdded) as DaysOld
FROM tbl_stuff
© Stack Overflow or respective owner