• I have this page bookmarked because I can never remember how to get the last day of the month -- or some other date functions. It is very helpful:

    http://blog.sqlauthority.com/2007/08/18/sql-server-find-last-day-of-any-month-current-previous-next/