User Tools

Site Tools


syntax:functions:day

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
syntax:functions:day [2015/04/03 20:55] elenapsyntax:functions:day [2021/08/30 02:02] (current) – [Arguments] craigt
Line 1: Line 1:
-===== Day(date_as_number) =====+====== Day(date) =====
 +Category:  Date and Time function
  
-Extracts the corresponding day, 1 through 31, from the //date_as_number//.+\\  
 +=====Description===== 
 +This function returns the number of the corresponding day of the monthfrom 1 through 31, from //date//.
  
- Example   Result   Notes  +\\  
-day(42097 |  3  |  42097 corrensponds to April 4th, 2015  | +=====Arguments===== 
-day( makedate(2014,1,1) )  |  1  |    |+^Argument^Type^Description
 +|date|Date or Number (date serial)|An expression representing a date.  The date to extract the day of the month from.|
  
-=== See also=== +**Return value type:** Number (Integer). 
-  * [[syntax:functions:year]] + 
-  * [[syntax:functions:month]] +\\  
-  * [[syntax:functions:weekday]] +=====Remarks===== 
-  * [[syntax:functions:makedate]]+The //date// arguments 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===== 
 + 
 +  day(#2021-08-15)  //Returns 15. 
 + 
 +  day(42097)  //Returns 3 (42097 corresponds to April 3rd, 2015.)  
 + 
 +  day( makedate(2014,1,1) )  //Returns 1. 
 + 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:year|Year(date)]] 
 +  * [[syntax:functions:month|Month(date)]] 
 +  * [[syntax:functions:weekday|Weekday(date)]] 
 +  * [[syntax:functions:makedate|MakeDate(year,month,day)]]
syntax/functions/day.1428108954.txt.gz · Last modified: 2015/04/03 20:55 by elenap

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki