Ability to Subtract Months from Date
Comments
-
Hello,
I am working on the ADOT project and I am able to Add Months to a date, but is there a step or function to be able to Subtract Months (Days and Years too) from a date?
Thanks for your help!
-
Hi,
There is a subtract timespan step under Data > Dates.
-
I saw that and tried to use it – but the values are only in seconds, minutes, hours, and days (when the mapping type is Constant) – is there no value for months or years?
-
Months and Years arent an option. You can use converter flows for this.A converter flow that subtracts years from a current date. You can build a similar converter flow for months or for your needs by using the month or year variable available under the Date as shown in the screenshot.
The easiest way to do this would be to pass a negative value into the Add Months step. This will subtract months from the datetime and calculate a new datetime for you.
Thank you.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 83 General
- 13 Training
- 210 Installation / Setup
- 1.2K Flows
- 110 Rules
- 271 Administration
- 213 Portal
- 498 General Q & A
- 714 Forms
- 348 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 187 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 230 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 26 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions