Skip to content

Tag: sql-server-2008

How to find last weekday of current month using SQL

How would I calculate the last weekday of the current month given a date using SQL? I was able to get the last day of current month, but not sure how to do the last weekday programmatically. I don’t want to generate a calendar look-up table. Here’s the last day of month code i’m currently us…