addMonths
Last updated
Last updated
addMonths() function is the Standard function available in 200OK.
Description : The addMonths function adds the specified number of months to the given date, adjusting for the last day of the month if necessary.
Syntax : fx_addMonths()
Example : fx_addMonths(2023-03-07,2) returns '2023-05-07' as the response, adding two months to the input date.
Here we go with simple scenario using the above function.
Scenario : In a project management application, a project manager schedules tasks with specific deadlines. They utilize a function to adjust task deadlines by adding a certain number of months. For instance, if a task originally has a deadline of March 7, 2023, adding two months using the function results in a new deadline of May 7, 2023.
Request Side :
Response Side :