Hi,
I'm trying to use the datediff function - checking out the difference between the field value (a timestamp) and the present time.
However, I cant get it to work - can I do the calc and include the field as one of the expressions to check?
I know you can with the other date functions (in the example I use date_add to show this).
I've tried lots of combinations - putting them in the same format was my last effort
SELECT DATE_ADD(due_date, interval 1 day ) as t1, DATE_FORMAT(NOW(), '%Y-%m-%d') as t2, DATEDIFF(t1,t2) as difference
Any ideas ?