MonthName: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "MONTHNAME(''month''[, ''abbreviate'']) '''Description''' MONTHNAME returns the string name of the given month. The required parameter, ''month'', is a numeric expression ran...")
 
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
MONTHNAME(''month''[, ''abbreviate''])
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
MonthName(''month''[, ''abbreviate''])


MONTHNAME returns the string name of the given month. The required parameter, ''month'', is a numeric expression ranging from 1 to 12. The optional parameter, ''abbreviate'', is a boolean variable that specifies whether MONTHNAME returns the complete month name or its three-letter abbreviation.
== Description ==


'''Example'''
MonthName returns the string name of the given month. The required parameter, ''month'', is a numeric expression ranging from 1 to 12. The optional parameter, ''abbreviate'', is a boolean variable that specifies whether MonthName returns the complete month name or its three-letter abbreviation.
 
== Example (Basic) ==


<pre>
<pre>
REM MONTHNAME Example
Rem MonthName Example
PRINT MONTHNAME(MONTH(NOW))
Print MonthName(Month(NOW))
PRINT MONTHNAME(12, TRUE)
Print MonthName(12, TRUE)
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 20: Line 22:
</pre>
</pre>


'''Related Items'''
== Related Items ==
 
[[weekdayname|WeekdayName]]
 
[[Category:Language Reference]]
 
[[Category:Date and Time]]


[[weekdayname|WEEKDAYNAME]]
[[Category:BASIC Functions]]

Latest revision as of 15:31, 25 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

MonthName(month[, abbreviate])

Description

MonthName returns the string name of the given month. The required parameter, month, is a numeric expression ranging from 1 to 12. The optional parameter, abbreviate, is a boolean variable that specifies whether MonthName returns the complete month name or its three-letter abbreviation.

Example (Basic)

Rem MonthName Example
Print MonthName(Month(NOW))
Print MonthName(12, TRUE)

Output

August
Dec

Related Items

WeekdayName