date_format_spec ::=

DATE_FORMAT
{
{ DATE | { TIME | TIMESTAMP } [WITH TIMEZONE] } MASK \"date/time mask\"  
| INTERVAL { YEAR_TO_MONTH | DAY_TO_SECOND }
}

For information on how to read this syntax, see Appendix C.