User Tools

Site Tools


syntax:functions:day

This is an old revision of the document!


Day(date)

Category: Date and Time function


Description

This function returns the number of the corresponding day of the month, from 1 through 31, from date.


Arguments

ArgumentTypeDescription
dateDate or Number (date serial)An expression representing a date.

Return value type: Number (Integer).


Remarks

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/day.1630296838.txt.gz · Last modified: 2021/08/30 00:13 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki