ICultureInfo.MonthName

Syntax

MonthName(MonthIndex: Integer): String;

Parameters

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

Possible parameter values:

1 - January

2 - February

3 - March

4 - April

5 - May

6 - June

7 - July

8 - August

9 - September

10 - October

11 - November

12 - December.

Description

The MonthName property returns the name of the month, which index is passed as the MonthIndex input parameter.

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