how to format a sql date
Introduction to MySQL DATE_FORMAT function. To format a date value to a specific format, you use the DATE_FORMAT function. format : is a format string that consists of predefined specifiers. Each specifier is preceded by a percentage character ( % ). See the table below for a list of predefined specifiers.