how to get last date of month in sql code example Example: sql end of month EOMONTH(start_date [, offset] );