NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.IsLeapYear

Determines whether a specified year is a leap year.

[Visual Basic]
Public Shared Function IsLeapYear( _
   ByVal year As Integer _
) As Boolean
[C#]
public static bool IsLeapYear(
   int year
);
[C++]
public: static bool IsLeapYear(
   int year
);
[JScript]
public static function IsLeapYear(
   year : int
) : Boolean;

Parameters

year
The year to check.

Return Value

true if the year is a leap year; otherwise, false.

Remarks

The IsLeapYear method is used to determine whether a specified year is a leap year and returns a Boolean determination for the result.

See Also

DateTime Structure | DateTime Members | System Namespace | Boolean | Calendar