endOfQuarter
Modified on Thu, 24 Aug 2023
Description
Use this function to obtain the end of a year quarter for the given date. The result will be in the local timezone.
Syntax
endOfQuarter(date)
Returns
Return Value | Description |
---|---|
Date | Returns a Date object representing the end of the year quarter for the given date in the local timezone. |
Sample
Example | Result | Description |
---|---|---|
endOfQuarter(2023-04-03) | 2023-03-31 | Returns the end of the year's first quarter for April 3, 2023, in the local timezone, which is March 31, 2023. |
To view all the Date functions, click here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article