quarter
To return the quarter of a given date as a number
This function will return the quarter of a given date as a number with the 1st quarter = 1, … 4th quarter = 4.
This can be helpful when filtering, sorting, and/or grouping records with a calendar reference.
If you use the function together with an appointment, make sure to specify if you need the start or the end.
quarter(date)
number
1
quarter(Date)
Result: 2
(with Date = 06/02/2021 (US) and 02/06/2021(UK))
1
quarter(start(Appointment))
Result: 2
(with Appointment =
- 06/02/2021 09:00 - 07/03/2021 18:00 (US)
- 02/06/2021 09:00 - 03/07/2021 18:00 (UK))
1
quarter(endof(Appointment))
Result: 3
(with Appointment =
- 06/02/2021 09:00 - 07/03/2021 18:00 (US)
- 02/06/2021 09:00 - 03/07/2021 18:00 (UK))
Last modified 1yr ago