get-year-from-date

Returns the year part of a given date.

Syntax

    get-year-from-date(strDate)

Parameters

strDate is a string that represents the date and is specified in the format yyyy-mm-dd. For more information about date and time parameters, see Date and time parameters.

Returns

A number that holds the year part of the given date.