getUTCFullYear

Summary

Returns the year of the System.Date object, according toCoordinated Universal Time (UTC), in a human-readable format.

Usage

public int getUTCFullYear()

Returns

The year value of the System.Date object according to Coordinated Universal Time (UTC).

Description

Returns the year of the System.Date object, according to Coordinated Universal Time (UTC), in a human-readable format.

Examples

Basic Usage
1
2
3
4
import System;
 
Date d = new Date(2011, Date.Month.JAN);
Console.log(d.getUTCFullYear()); // 2011

Share

HTML | BBCode | Direct Link