Clear Up
SharpKit Reference

JsDate.getYear Method

Returns the year value in a Date object. This method is obsolete, and is provided for backwards compatibility only. Use the getFullYear method instead. For the years 1900 though 1999, the year is a 2-digit integer value returned as the difference between the stored year and 1900. For dates outside that period, the 4-digit year is returned. For example, 1996 is returned as 96, but 1825 and 2025 are returned as-is.

Namespace: SharpKit.JavaScript

Class: JsDate


public JsNumber getYear()

Return Value

Type: SharpKit.JavaScript.JsNumber
© Copyright 2005-2011 SharpKit. All rights reserved.