DateTime.Date

Syntax

Date: DateTime;

Description

The Date property returns the date component from the current variable.

Example

Sub Main;

Var

DT, DT1: DateTime;

Begin

DT := DateTime.Parse("30.03.2002 12:12:00");

DT1 := DT.Date;

End Sub Main;

After executing the example the "DT1" variable will contain the date "30.03.2002". The time component of the "DT1" variable will be empty (Value "0:00:00").

See also:

DateTime