www.icetips.com  Icetips Utilities Documentation 11/14/2010    

Date Class: GetMonthName

Previous  Top  Next  


Prototype: (Byte pMonth, Byte pLongName=True),String

 

pMonthMonth value to get the name for, must be in the range of 1 to 12.
pLongNameDetermine if it should return the long/full month name.  This parameter is true by default.

 

ReturnsThe 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:

InitMonthNames

SetMonthName

Construct

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getmonthname_dateclass.htm