How do I exclude values in a DateTime column that are Saturdays or Sundays?
DateTime
For example, given the following data:
date_created \'2009-1
Try the DATENAME() function:
DATENAME()
select [date_created] from table where DATENAME(WEEKDAY, [date_created]) <> 'Saturday' and DATENAME(WEEKDAY, [date_created]) <> 'Sunday'