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