endOfQuarter

Modified on Mon, 03 Apr 2023

Use this function to return the end of a year quarter for the given date. The result will be in the local timezone

Syntax

endOfQuarter(date)

Returns

Return ValueDescription
Date
Return the end of a year quarter for the given date

Sample

endOfQuarter(2023-4-3):If the given date is April 3, 2023, then the end of the first quarter of 2023 would have been March 31, 2023.