Forum Moderators: open
This is the code I'm using:
(current - DATE_ADD( NOW( ) , INTERVAL 0 HOUR ) >= 86400*30 days) I'm using the interval function to compensate for server time zones. Current is the datetime field in my database. I can't seem to figure out what the unit is for the returned calculation. When I find the difference in the dates, the numbers don't add up.
What can I do differently to calculate the time difference between two dates (the datetime field and the current time)?