DateTime.Day

Syntax

Day: Integer;

Description

The Day property returns the day of the month from the current variable.

Example

Sub Main;

Var

i, i1: Integer;

DT, DT1: DateTime;

Begin

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

DT1 := DateTime.Parse("25.03.2002 00:00:00");

i := DT.Day;

i1 := DT1.Day;

End Sub Main;

After executing the example the "i" and "i1" variables will contain values 30 and 25 respectively.

See also:

DateTime