sql end of month code example
Example 1: get current month last date in sql server
SELECT EOMONTH('2019-02-15') end_of_month_feb2019;
Example 2: sql end of month
EOMONTH(start_date [, offset] );
SELECT EOMONTH('2019-02-15') end_of_month_feb2019;
EOMONTH(start_date [, offset] );