Skip to main content

Date.QuarterOfYear

Returns a number indicating which quarter of the year the date falls in.

Syntax

Date.QuarterOfYear(
dateTime as any
) as number

Remarks

Returns a number from 1 to 4 indicating which quarter of the year the date dateTime falls in. dateTime can be a date, datetime, or datetimezone value.

Examples

Example #1

Find which quarter of the year the date #date(2011, 12, 31) falls in.

Date.QuarterOfYear(#date(2011, 12, 31))

Result:

4

Category

Date