MaxValue: DateTime;
The MaxValue property returns the maximum value of the DateTime type.
Sub UserProc;
Var
d: DateTime;
Begin
d := DateTime.MaxValue;
End Sub UserProc;
After executing the example the "d" variable will store the maximum date value - 31.12.9999.
See also: