System Namespace DateTime Structure
Returns an indication whether the specified year is a leap year.
[ VB ]
<Serializable>
Public Shared Function IsLeapYear ( _
ByVal year As Integer _
) As Boolean
[ C# ]
[ Serializable ]
public static bool IsLeapYear (
int year
);
[ C++ ]
[ Serializable ]
public: static bool IsLeapYear (
int year
);
[ JScript ]
public Serializable
static function IsLeapYear (
year : int
) : Boolean;
- year
- A 4-digit year.
true if year is a leap year; otherwise, false.
year is specified as a 4-digit base 10 number; for example, 1996.
DateTime Members