In SQL Server, the T-SQL DATENAME() function returns a character string that represents the specified datepart of the specified date. For example, you can pass in 2021-01-07 and have SQL Server return only the month portion (January).
The return type for DATENAME() is nvarchar.
Examples below.