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