User Tools

Site Tools


syntax:functions:month

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
syntax:functions:month [2015/04/03 20:55] elenapsyntax:functions:month [2021/08/30 02:39] (current) craigt
Line 1: Line 1:
-===== Month(date_as_number) =====+====== Month(date) =====
 +Category:  Date and Time function
  
-Extracts the corresponding month, 1 through 12, from the //date_as_number//.+\\  
 +=====Description===== 
 +This function returns the corresponding month number, 1 through 12, from //date//.
  
-^  Example   Result   Notes  ^ +\\  
-month(42097)  |  4  |  42097 corrensponds to April 4th, 2015  | +=====Arguments===== 
-month( makedate(2014,1,1) )  |  1  |    |+^Argument^Type^Description^ 
 +|date|Date or Number (date serial)|An expression representing a date.  The date value to derive the month number from.| 
 + 
 +**Return value type:** Number  
 + 
 +\\  
 +=====Remarks===== 
 +The //date// argument can take any value or expression that evaluates to a date serial value.  Examples include:   
 +  * A date string:  #2019-12-12 
 +  * A date serial value: 43811 (the date serial for "2019-12-12") 
 +  * A date value created using any of the Date/Time functions that returns a date serial value. 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  month(42097)  //Returns 4  (42097 corresponds to April 4th, 2015.) 
 + 
 +  month(#2014-01-01)  //Returns 1 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:year|Year(date)]] 
 +  * [[syntax:functions:day|Day(date)]] 
 +  * [[syntax:functions:weekday|Weekday(date)]] 
 +  * [[syntax:functions:makedate|MakeDate(year, month, day)]]
  
-=== See also: === 
-  * [[syntax:functions:year]] 
-  * [[syntax:functions:day]] 
-  * [[syntax:functions:weekday]] 
-  * [[syntax:functions:makedate]] 
syntax/functions/month.1428108926.txt.gz · Last modified: 2015/04/03 20:55 by elenap

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki