Today: DateTime;
The Today method returns the current date.
Sub Main;
Var
DT: DateTime;
s: String;
Begin
DT := DateTime.Today;
s := DT.ToString;
End Sub Main;
After executing the example the "DT" variable will contain the current date, and the "s" variable will contain the current date converted into a string.
See also: