FORMAT
string transform
What changes
- Input
- string arguments
- Output or change
- string or integer
- Return type
- nvarchar or null The length of the return value is determined by the format.
Syntax at a glance
FORMAT( value , format [ , culture ] )
Work example
Render a value for a locale-specific report label at the presentation edge.
Keep FORMAT out of large filters and joins because it invokes culture-aware formatting per value.
Check your work FORMAT returns text, depends on culture, and can be slower than a typed date or number expression.
Practice SQL
Open in SQL FlowSELECT FORMAT(CONVERT(date, '2026-04-05'), 'yyyy-MM') AS month_label;
Open Microsoft Learn for full syntax, permissions, and details for your version.