DatePart
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns a number that is a part of a date. If the date is unknown then this function returns unknown.
Returns Unknown
if one of the parameter values is unknown or outside the common valid date boundaries.
date
date time
a date
unit
keyword
Date unit keyword
Possible values: year, month, week, day, hour, minute or second.