MaxValue: DateTime;
The MaxValue property returns the maximum value of the DateTime type.
Sub Main;
Var
d: DateTime;
Begin
d := DateTime.MaxValue;
End Sub Main;
After executing the example the "d" variable stores the maximum date value (31.12.9999).
See also: