MonthName: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.'' | |||
MonthName(''month''[, ''abbreviate'']) | MonthName(''month''[, ''abbreviate'']) | ||
Line 5: | Line 7: | ||
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. | 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 == | == Example (Basic) == | ||
<pre> | <pre> | ||
Line 27: | Line 29: | ||
[[Category:Date and Time]] | [[Category:Date and Time]] | ||
[[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