User Tools

Site Tools


syntax:functions:monthstart

Differences

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

Link to this comparison view

syntax:functions:monthstart [2018/08/13 16:11] – created dmitrysyntax:functions:monthstart [2021/09/10 22:39] (current) craigt
Line 1: Line 1:
-===== MonthStart(date_as_number) =====+====== MonthStart(date) =====
 +Category:  Date and Time function
  
-Returns the first day of the month of the date.+\\  
 +=====Description===== 
 +This function returns the date serial number of the first day of the month //date// falls in. 
 + 
 +\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|date|Date or Number (date serial)|An expression representing a date to derive the month's first day date value from.| 
 + 
 +**Return value type:** Date serial 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===== 
 + 
 +  monthstart(#2018-06-06)  //Returns 43252 (Equivalent to June 1st, 2018.) 
 + 
 +  monthstart(#2020-01-28)  //Returns 43831 (Equivalent to January 1st, 2020.) 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:month|Month(date_as_number)]] 
 +  * [[syntax:functions:monthend|MonthEnd(date)]] 
 +  * [[syntax:functions:monthname|MonthName(month_num)]] 
 +  * [[syntax:functions:monthnamelocal|MonthNameLocal(month_num)]]
  
-^  Example  ^  Result  ^ Notes ^ 
-| monthstart(#2018-06-06)  |  43252 |Equivalent to June 1st, 2018  | 
syntax/functions/monthstart.1534191117.txt.gz · Last modified: 2018/08/13 16:11 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki