DateTime.Month

Syntax

Month: Integer;

Description

The Month property returns the number of the month from the current variable.

Example

Sub Main;

Var

i: Integer;

DT: DateTime;

Begin

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

DT := DateTime.AddMonths(DT, 3);

i := DT.Month;

End Sub Main;

After executing the example the "i" variable will contain the value 6.

See also:

DateTime