Function Block Year

The function block YEAR calculates the year of a date.

Input DT

At the input, a date can be specified in DT#. If no value is set, the current time is used.

Output YEAR

The year is output at the output.