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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions