getFullYear

Summary

Returns the year of the System.Date object, according to localtime, in a human-readable format.

Usage

public int getFullYear()

Returns

The year value of the System.Date object according to local time.

Description

Returns the year of the System.Date object, according to local time, 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.getFullYear()); // 2011

Share

HTML | BBCode | Direct Link