What is the most sample and practical way to know the MOM (middle of month) and EOM (end of month) in a stored procedure in SQL Server 2005? (without doing a select case / switch)
EOM is the last day of the month, and MOM is the last day of the fortnight. It seems to be 15 for every month except on February.
Also I need to take care the leap-year, Holidays, business day option, etc. Like linux.