ICultureInfo.MonthName

Syntax

MonthName(MonthIndex: Integer): String;

Parameters

MonthIndex. Index of month, which name should be found.

Description

The MonthName property returns the name of the month.

Comments

The following values of the MonthIndex parameter are available:

1 - January.

2 - February.

3 - March.

4 - April.

5 - May.

6 - June.

7 - July.

8 - August.

9 - September.

10 - October.

11 - November.

12 - December.

Example

Sub UserProc;
Var
    CI: ICultureInfo;
Begin
    CI := CultureInfo.UserDefault;
    Debug.WriteLine(CI.MonthName(1));
    Debug.WriteLine(CI.AbbreviatedMonthName(1));
End Sub UserProc;

On executing the example the current culture determined in the operating system will be obtained. Name and abbreviation of the first month of the year - January - will be displayed in the development environment console using culture language.

See also:

ICultureInfo