mysql> mysql> SELECT EXTRACT(DAY_MINUTE FROM '1999-07-02 01:02:03'); +------------------------------------------------+ | EXTRACT(DAY_MINUTE FROM '1999-07-02 01:02:03') | +------------------------------------------------+ | 20102 | +------------------------------------------------+ 1 row in set (0.00 sec) mysql>