SQL Flow Field Guide

EOMONTH

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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 Flow
SELECT EOMONTH(CONVERT(date, '2026-04-05')) AS month_end;

Open Microsoft Learn for full syntax, permissions, and details for your version.