Navigation:  thinBasic Modules > DT (Date Handling) >

DT_GetMonthName

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the month's name giving the month number.

 

Syntax

 

DT_GetMonthName(MonthNumber, Type) AS STRING

 

Returns

 

String. The short or long form of month name.

 

Parameters

 

Name

Type

Optional

Meaning

MonthName

Number

No

Number of the month to return

Type

Number

No

Specify the name form request. It can be one of following:

 

Type

Meaning

%DT_USE_LONG_FORM

Will return 3 letter month name

%DT_USE_SHORT_FORM

Will return full month name

 

 

Remarks

Restrictions

 

See also

 

DT_ GetWeekDayName,

 

 

Examples

 

MSGBOX 0, DT_GetMonthName(6, %DT_USE_SHORT_FORM)  ' results Jun

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com