Fusion to substract days | Community
Skip to main content
Level 3
April 9, 2025
Solved

Fusion to substract days

  • April 9, 2025
  • 1 reply
  • 366 views

Hi, I’m stuck on something - how do you use Fusion to subtract x days from a planned completion date? I can see there’s an addDays function, but nothing for subtracting. Is there a workaround for this?

 

Best answer by skyehansen

To subtract, add a negative number. See example code here:

https://experienceleague.adobe.com/en/docs/workfront-fusion/using/references/mapping-panel/functions/date-and-time-functions

1 reply

skyehansen
Community Advisor and Adobe Champion
skyehansenCommunity Advisor and Adobe ChampionAccepted solution
April 9, 2025
ab_cdefAuthor
Level 3
April 10, 2025

Awesome! There is actually an example with the negative number:

 

addDays(2016-12-08T15:55:57.536Z;-2)

Returns 2016-12-6T15:55:57.536Z

 

Thanks!