Back to Devexpress

IsLeapYear(Integer) Method

vcl-cxdateutils-dot-isleapyear-x28-2822a90a-x29.md

latest588 B
Original Source

IsLeapYear(Integer) Method

Determines whether the specified year is a leap year.

Declaration

delphi
function IsLeapYear(AYear: Integer): Boolean;

Parameters

NameType
AYearInteger

Returns

Type
Boolean

Remarks

Use the IsLeapYear function to determine whether the year passed as an AYear parameter contains 365 or 366 days.

See Also

cxDateUtils Unit