'Declaration
Public Shared Function IsLeapYear( _ ByVal year As Integer, _ ByVal excelCompatible As Boolean _ ) As Boolean
'Usage
Dim year As Integer Dim excelCompatible As Boolean Dim value As Boolean value = CalcHelper.IsLeapYear(year, excelCompatible)
public static bool IsLeapYear( int year, bool excelCompatible )
Parameters
- year
- The year.
- excelCompatible
- if set to
true
the year 1900 count as leap year as Excel; otherwise,false
.
Return Value
true
if the year 1900 count as leap year; otherwise, false
.