Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

D toc
Excerpt

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.

Info

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

D s
snippetBasic

D code

derive type:single value:DAY(MyDate)

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

D s
snippetSyntax

D code

derive type:single value:DAY(datetime_col)

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

D s lang notes

datetime_col

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

  • Missing values for this function in the source data result in missing values in the output.
  • Multiple columns and wildcards are not supported.

D s
snippetusage

 

Required?Data TypeExample Value
YesDatetimemyDate

D s
snippetExamples

Example - Date element functions

Include Page
EXAMPLE - Date Functions
EXAMPLE - Date Functions

D s also
labeldate