Date.quarter

Date.quarter

Date.quarter

Function

Read the quarter of the current Date.

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns the quarter number from 1 to 4.

Code Example

Notes

  • Quarters are calculated in months: January to March is 1, April to June is 2, July to September is 3, and October to December is 4.