Returns text corresponding to the specified part of a given date
Last updated 2 years ago
DATENAME(date, date_part)
date
date_part
Returns the date_part of date as a string
Argument
Description
Date/time value(s)
Part of the date/time objects to return
Text representing the desired date_part of a date