|
Previous Top Next |
Prototype: | (Byte pMonth, Byte pLongName=True),String |
pMonth | Month value to get the name for, must be in the range of 1 to 12. |
pLongName | Determine if it should return the long/full month name. This parameter is true by default. |
Returns | The name of the month as set by InitMonthNames or overridden by SetMonthName. |
This method is used to retrieve the month name, such as "January" based on a month number, 1 for January, 2 for February and so on. The Constructor calls the InitMonthNames method which sets the English month names, both long and short (3 character abbreviated month names, Jan, Feb, etc.)
Example:
ITD ITDateClass
Code
ITD.SetMonthName(1,'Janúar','Jan') !! Set Icelandic name for January
Message('January is now: ' & ITD.GetMonthName(1))
See also: