IsLeapYear(Year: Integer): Boolean;
Year - the year that must be checked.
The IsLeapYear method returns the leap year attribute.
Sub Main;
Var
b, b1: Boolean;
Begin
b := DateTime.IsLeapYear(2000);
b1 := DateTime.IsLeapYear(2001);
End Sub Main;
After executing the example the "b" variable will contain True, and the "b1" variable will contain False.
See also: