Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

Info

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

D s
snippetBasic

YEAR
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
year(MyDate)

year(MyDate)

Output:

...

Returns the four-digit year values from the MyDate column.

D s
snippetSyntax

YEAR
d-code-lang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
year(datetime_col)

year(datetime_col)


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

...