in reply to Re: Difference between dates
in thread Difference between dates

Yes. The OP's code doesn't seem to match his question, since it doesn't do any subtracting, but MySQL can give you the difference between two dates:

SELECT id, DATEDIFF(lastlogin, dateadded) FROM order_details;

Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.