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 this code
select (DATEDIFF(DD,'2014-08-01','2014-08-14')+1)- (DATEDIFF(WK,'2014-08-01','2014-08-14')* 2)