EOMONTH
date/time arithmetic, parts, construction or truncation
What changes
- Input
- date/time arguments
- Output or change
- date/time or integer value
- Return type
- date
Syntax at a glance
EOMONTH ( start_date [ , month_to_add ] )
Work example
Find the last calendar day of an accounting month.
Shift by the required month count before finding the month end.
Check your work EOMONTH returns a date value, even when the input includes a time.
Practice SQL
Open in SQL FlowSELECT EOMONTH(CONVERT(date, '2026-04-05')) AS month_end;
Open Microsoft Learn for full syntax, permissions, and details for your version.