MonthName(MonthIndex: Integer): String;
MonthIndex. Index of month, which name should be found.
The MonthName property returns the name of the month.
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.
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: