Returns the day-of-month part of a date or date-time value.
Function
result = day(input)
Arguments
Argument | Data Type |
input | date (datetime will be implicitly cast to date) |
---|---|
result | integer |
Comments
Returns the day of a date as a number from 1 to 31.
This function operates in the local time-zone if a datetime input is provided. See Dates, Times and Time Zones.
Examples
result = day(#1988-11-25#) /* result = 25 */
result = day(getdate())