DateWithZone.IsLeapYear MethodDateWithZone.IsLeapYear MethodDateWithZone::IsLeapYear Method

Determines whether the specified year is a leap year.

Syntax

Public Shared Function IsLeapYear( _
    year As Long _
) As Boolean
public static bool IsLeapYear(
    long year
)
public:
static bool IsLeapYear(
    long year
)
 

Parameters

year

Type: System.Int64System.Int64System::Int64

The year to test.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if year is a leap year, falseFalsefalse otherwise.