DatePart
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.
Syntax
Parameters
Name
Type
Required
Description
date
date time
☑️
a date
unit
keyword
☑️
Date unit keyword
Possible values: year, month, week, day, hour, minute or second.
Last updated
Was this helpful?