Public Function IsLeapYear( _
ByVal vDate As Variant _
) As Variant IsLeapYear(1996) = True
IsLeapYear(#2/5/1996#) = True
IsLeapYear(2000) = True
IsLeapYear(2001) = False
IsLeapYear(#2/5/2001#) = FalseSee also: DaysInMonth Function
DaysInYear Function
IsLeapYearTest FunctionvDate: The date or year number which is checked to see if it is a "leap year." Function examines the year component of the date if vDate is a date value. Function interprets numeric values as years instead of interpreting them as a date. Function returns Null if vDate is Null or cannot be fixed up to either a date or a number. Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.