Subtract Months
This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0
This function subtracts a specific number of months (for example, 3) from the date with the dd/mm/yy or dd/mm/yyyy formats. For instance, assume you want to subtract 3 months from the 05/10/24 (5 October, 2024) date. After you use the SUBMONTHS() function to subtract 3 months from the 05/10/24 date, it performs the subtraction and then returns the 05/07/24 (5 July, 2024) date.
You can use the SUBMONTHS function as follows:
To use the SUBMONTHS function:
- Click in the smart selector to display the Search box.
- In the Search box, enter submonths to display the SUBMONTHS function.
- In the list, select the SUBMONTHS function to display it with the date, format, and months parameters.
- In the SUBMONTHS function, click Date to display the Search box.
- In the Search box, enter static to display the Static function.
- In the list, select the Static function to display it with the value and the String parameters.
- In the Static function, click the value parameter and then enter a date (for example, 05/10/24 or 05/10/2024) in dd/mm/yy or dd/mm/yyyy format.
Note:- If you do not want to enter the date manually by using the Static function, you can fetch the value of the date from an element or entity. To know more about defining the value in the entity, visit the post, Using Entity with Date and Time Functions.
- In the SUBMONTHS function, click the format parameter and then enter dd/mm/yy in the place of the format parameter.
- In the SUBMONTHS function, click the months parameter to display the Search box.
- In the Search box, enter static to display the Static function.
- In the list, select the Static function to display it with the value and the Integer parameters.
- In the Static function, click the value parameter and then enter a value (for example, 3) that you want to subtract from the earlier defined date (05/10/24).
Was this article helpful?
YesNo