addQuarters
Modified on Tue, 22 Aug 2023
Description
Use this function to add the specified number of quarters to the given date.
Syntax
addQuarters(date: Date | number, amount: number): Date
Returns
Return Value | Description |
---|---|
Date | Returns the resulting date after adding the specified number of quarters. |
Sample
Example | Result | Description |
---|---|---|
addQuarters (2023-04-03, 2) | 2023-10-03 | Adds 2 quarters to the input date (2023-04-03), resulting in a new date of 2023-10-03. |
To view all the Date functions, click here.
See Also
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