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