DATENAME
date/time arithmetic, parts, construction or truncation
What changes
- Input
- date/time arguments
- Output or change
- date/time or integer value
- Return type
- nvarchar
Syntax at a glance
DATENAME ( datepart , date )
Work example
Return a language-sensitive date part such as a month name for display.
Keep labels in the presentation layer when reports need a fixed language.
Check your work DATENAME output can change with session language and date settings.
Open Microsoft Learn for full syntax, permissions, and details for your version.