How do I get the day of the week (in ffffd format, so Mon, Tue etc.) in SQL ? I don\'t see anything about it in the CAST and CONVERT documentation..
I would use SELECT CONVERT(CHAR(3),DATENAME(weekday,GETDATE())) so as to avoid using another function in the SQL, the conversion to a CHAR(3) implicitly takes the first 3 characters.
SELECT CONVERT(CHAR(3),DATENAME(weekday,GETDATE()))
Jonathan