differenceInCalendarQuarters

Modified on Tue, 22 Aug 2023

Description

Use this function to get the number of calendar quarters between the given dates.

Syntax

differenceInCalendarQuarters(dateLeft, dateRight)

Returns

Return ValueDescription
NumberReturns the total number of calendar quarters.

Sample

ExampleResultDescription
differenceInCalendarQuarters (2022-1-1, 2023-4-1)5In this example, the output will be 5.

To view all the Date functions, click here.

See Also