Reference > TDBDateX Object > TDBDateX Object Properties > IsLeapYear Property (TDBDateX) |
IsLeapYear Property (TDBDateX)
The IsLeapYear property returns True if the underlying date value happens to land on a leap year.
object.IsLeapYear
Read-only at run time. Not available at design time.
True - Date in Value property is leap year
False - Date in Value property is not leap year
Leap years are all years that are evenly divisible by 400 or 4 and not divisible by 100. for example, 1600 and 2000 are evenly divisible by 400, therefore they are leap years.
When the Value property equals Null, the IsLeapYear property will return False.
See Also