get last date in month code example
Example 1: get current month last date in sql server
SELECT EOMONTH('2019-02-15') end_of_month_feb2019;
Example 2: get last day of month java
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DATE, cal.getActualMaximum(Calendar.DATE));
Date lastDayOfMonth = cal.getTime();