sql day from datetime code example
Example 1: sql day from datetime
SET @@lc_time_names = 'fr_FR';
SELECT DAYNAME('2000-01-01') dayname;
+---------+
| dayname |
+---------+
| samedi |
+---------+
Example 2: sql: extract day text from datetime value
SELECT DATENAME(dw,'09/23/2013') as theDayName