ComponentOne True DBInput Pro 8.0
IsLeapYear Property (TDBDateX)

 

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.

Syntax

object.IsLeapYear

Read-only at run time. Not available at design time.

Values

True - Date in Value property is leap year

False - Date in Value property is not leap year

Remarks

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

Value Property (TDBDateX)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback