MONTH
date/time arithmetic, parts, construction or truncation
What changes
- Input
- date/time arguments
- Output or change
- date/time or integer value
- Return type
- int
Syntax at a glance
MONTH ( date )
Work example
Read a month number for labels or a compact report grouping.
Keep year with month when grouping across more than one year.
Check your work Month number alone repeats every year and is not a unique period key.
Practice SQL
Open in SQL FlowSELECT MONTH(CONVERT(date, '2026-04-05')) AS month_number;
Open Microsoft Learn for full syntax, permissions, and details for your version.