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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions