How to get the name of the day of date
Do you have a date and you want the day of the week but
not the number but the name i.e. Monday, Tuesday etc. Well there are two
functions that you can use with dates that can be used to extract a part of the
date. One function returns the number and one returns text version. The
functions are DATEPART and DATENAME respectively.
Both take a parameter that is the part of the date you want, see BOL for the
complete list of options, a couple are
dw = day of week
m = month
so DATENAME(dw,'3 sept 2007') = 'Monday'
-