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