Subtract Days

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 days (for example, 11) from a date with the dd/mm/yy or dd/mm/yyyy formats. For instance, assume you want to subtract 11 days from the 25/06/24 (25 June, 2024) date. After you use the SUBDAYS() function to subtract 11 days from the 25/06/24 date, it performs the subtraction and then returns the 14/06/24 (14 June, 2024) date.

You can use the SUBDAYS function as follows:

To use the SUBDAYS function:

  1. Click in the smart selector to display the Search box.
  1. In the Search box, enter subdays to display the SUBDAYS function.
  1. In the list, select the SUBDAYS function to display it with the dateformat, and days parameters.
  1. In the SUBDAYS function, click date to display the Search box.
  2. In the Search box, enter static to display the Static function.
  1. In the list, select the Static function to display it with the value and String parameters.
  2. In the Static function, click the value parameter and then enter a date (for example, 25/06/24 or 25/06/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.

  1. In the SUBDAYS function, click the format parameter and then enter dd/mm/yy in the place of the format parameter.
  1. In the SUBDAYS function, click the days parameter to display the Search box.
  2. In the Search box, enter static to display the Static function.
  1. In the list, select the Static function.
  2. In the Static function, click the value parameter, and then enter a value (for example, 11) that you want to subtract from the earlier defined date (25/06/24).

Was this article helpful?
YesNo