DateTime.Month

Syntax

Month: Integer;

Description

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

Example

Sub UserProc;
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 UserProc;

After executing the example the "i" variable contains the 6 value.

See also:

DateTime