The YEAR function extracts the year from an input date. The input date should be in MM/DD/YYYY format. Node references are also accepted as arguments.
Syntax
Arguments
date - The date which is passed as input to the function.
Return value
Date
Example
Returns 2023.