asp.net.ph

DateTime.IsLeapYear Method

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;

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.

See Also

DateTime Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph