Date: DateTime;
The Date property returns the date component from the current variable.
Sub UserProc;
Var
DT, DT1: DateTime;
Begin
DT := DateTime.Parse("30.03.2002 12:12:00");
DT1 := DT.Date;
End Sub UserProc;
After executing the example the "DT1" variable contains the date 30.03.2002. The time component of the "DT1" variable will be empty ("0:00:00").
See also: