web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

subtractFromTime

(0) ShareShare
ReportReport
Posted on by 2

I need to subtract (1Month-1Day) from a specific date, is that possible using subtractFromtime?

 

ie: the starting date is: 10/04/23 (dd/mm/yy)

the calculated date will be: 11/3/23 (dd/mm/yy)

 

Categories:
I have the same question (0)
  • Jdelavega Profile Picture
    106 on at

    Hi @Ethan1981 ,

     

    Try this:

     

    subtractFromTime('2023-04-10', 1, 'Month', 1, 'Day', 'yyyy-MM-dd')

  • Ethan1981 Profile Picture
    2 on at

    The function only accepts 4 parameters, 1 being the original timestamp, 2 being the integer for number of days etc, 3 being the unit day/month/year, and 4 being an optional time format.

     

    Also to clarify, I don't want to subtract 1 month and 1 day. I want to subtract 1month-1day. I suppose, thinking about it, it would be subtracting 1 month and adding 1 day...

  • Jdelavega Profile Picture
    106 on at

    @Ethan1981 

     

    In that case, maybe you can use the "add to time" action instead of the "subtract from time" action.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard