I need to bring a TIMEDIFF with a formatted field like this: 12:50 (hours and minutes) from my database. I use the following excerpt:
CONCAT(HOUR(TIMEDIFF(Campo.expired,NOW())),":",MINUTE(TIMEDIFF(Campo.expired,NOW()))) AS expired
My problem lies in the fact that when the time is only 1 digit, the result looks like this: 2: 4 (2 hours and 40 minutes). I need to display this date correctly, ie 02:40.
I've tried to use DATE_FORMAT within CONCAT without success.