User Tools

Site Tools


syntax:functions:monthname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
syntax:functions:monthname [2015/04/03 20:58] elenapsyntax:functions:monthname [2021/09/10 22:16] craigt
Line 1: Line 1:
-===== MonthName(month_number) =====+====== MonthName(month_num) =====
 +Category:  Date and Time function
  
-Returns abbreviated 3-letter name of the month corresponding to //month number//, from 1 through 12.+\\  
 +=====Description===== 
 +This function returns the abbreviated (3-lettername of the month corresponding to the //month_num//, from 1 to 12. 
 + 
 +\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|month_num|Number|A number representing a month, from 1 to 12.| 
 + 
 +**Return value type:** Text (Jan, Feb, Mar, etc.) 
 + 
 +\\  
 +=====Remarks===== 
 +Passing in a value of less than 1, or greater than 12, results in an error message. 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  monthname(1)  //Returns 'Jan' 
 + 
 +  monthname(9)  //Returns 'Sep' 
 + 
 +  monthname(0)  //Returns '#Inappropriate argument for MonthName(number)' 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:month|Month(date_as_number)]] 
 +  * [[syntax:functions:monthend|MonthEnd(date)]] 
 +  * [[syntax:functions:monthnamelocal|MonthNameLocal(month_num)]] 
 +  * [[syntax:functions:monthstart|MonthStart(date)]]
  
-^  Example  ^  Result  ^ 
-| MonthName(1)  |  Jan  | 
-| MonthName(8)  |  Aug  | 
syntax/functions/monthname.txt · Last modified: 2021/09/10 22:46 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki