mysql> mysql> mysql> SELECT DAYOFYEAR('1998-02-03'); +-------------------------+ | DAYOFYEAR('1998-02-03') | +-------------------------+ | 34 | +-------------------------+ 1 row in set (0.00 sec) mysql>