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 Platform Community / Forums / Power Automate / How to get Previous Mo...
Power Automate
Answered

How to get Previous Month in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

Hello,

Every month I have to create a folder called P3 March 2023, P4 April, 2023, P5 May 2023 and so on...  I already know how to do that. But most of the time I need to go back to the previous month.  How I can tell the script to go back one month (or future date).  I thought it was easy just to put -1, but it looks like I need to set up a bunch of code to do that.  Since we're in April, I need to go back to the previous month P3 March 2023.  Below is my script.  Thank you!

TTC_0-1680437209568.png

 

 

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @TTC 

     

    I think this would help you 

    Nived_Nambiar_0-1680457819789.png

     

    I added -1 to CurrentDateTime and store the resultant in same CurrentDateTime as in step 2

     

    Hope it helps 🙂

    Mark it as solution if it resolves your query 🙂

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard