Returning current year

Issue
Function to return the current year

Solution

To return the result into a control:
   [Control Name] = new Date().getFullYear();

 
To return the result into a variable
   var_VARIABLENAME = new Date().getFullYear();