I want to format the return value from subtime into the following format: HH:MM
SUBTIME('09:00:00', SEC_TO_TIME(30*60)),
DATE_FORMAT(SUBTIME('09:00:00', SEC_TO_TIME(30*60)), '%H:%i')
first subtime returns me correct 08:30:00
but the one with date_format, returns me just NULL
Can you help me out plz?
You should use TIME_FORMAT and not DATE_FORMAT: