Returns the specified part of a given date
Last updated 3 years ago
DATEPART( date , date part)
date
date part
Returns the specified date part for the given date/time element or array of dates.
Argument
Description
Date/time value(s)
Part of the date/time objects to return
Date part for each input date
Date part