getUTCFullYear function

Returns the year for the specified date, according to universal time.
Arguments
0
Return values (number)
A number (four digits for dates between year 1000 and 9999), representing the year.
Syntax
dateObj.getUTCFullYear()
Examples
Example Result
This script is added, as a custom script on an action, to any element with a Label property, such as a button.
var d = new Date(); 
this.Label = d.getUTCFullYear();
Assuming the current year, UTC time, is 2018: Returns "2018" on the element's label.
With Text1 and Text2 on a display, this script is added to the display's "OnOpen" event handling script.
var date1 = new Date("December 31, 1975, 23:15:30 GMT+11:00");
var date2 = new Date("December 31, 1975, 23:15:30 GMT-11:00");

Dsp.Text1.Label = date1.getUTCFullYear();
Dsp.Text2.Label = date2.getUTCFullYear();

Returns "1975" on the Text1 label.

Returns "1976" on the Text2 label.