This documentation is archived and is not being maintained.
DateTime.IsLeapYear Method
.NET Framework 1.1
Returns an indication whether the 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
- A 4-digit year.
Return Value
true if year is a leap year; otherwise, false.
Remarks
year is specified as a 4-digit base 10 number; for example, 1996.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
Show: