Derives the numeric day value from a Datetime value. Source value can be a a reference to a column containing Datetime values or a literal.

NOTE: If the source Datetime value does not include a valid input for this function, a missing value is returned.

derive type:single value:DAY(MyDate)

Output: Generates a column of values containing the day values from the MyDate column.

derive type:single value:DAY(datetime_col)

ArgumentRequired?Data TypeDescription
datetime_colYdatetimeName of column whose year values are to be computed

datetime_col

Name of the column whose day value is to be computed.

 

Required?Data TypeExample Value
YesDatetimemyDate

Example - Date element functions