I want to subtract todays Date from a deadline Date stored in a MySQL database, I want to do it in the sql string that is pulling the data. I tried numerous combinations and can't seem to get it right.
This is the part thats failing:
$date1('y m d',deadline) - $date2('y m d') AS daysleft
Appreciate any help.