DateTime::Year Property
Silverlight
Gets the year component of the date represented by this instance.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
The Year property returns the year of the current instance in the Gregorian calendar. It does not return the year using the default calendar of the current culture. To retrieve the year using a particular calendar, you can call that calendar's GetYear method. The following example, which assumes that the target computer's current culture is th-TH, illustrates this.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: