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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add prior days ...
Power Automate
Answered

How to add prior days date when renaming a file?

(0) ShareShare
ReportReport
Posted on by 2
Is there any way to automate adding the prior days day into a file name?
I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    So you want the flow to get yesterdays date and add that date to a filename?

    1. Get Current date (Current date only)
    2. Add to datetime (Time unit: Days, Add: -1 so to get yesterdays date)


    3. Convert date time to text (use what ever formatting you prefer but don't use these signs since they are not accepted in file names: \/ :*? "<>| )
    4. Rename file. Add text and add the %FormattedDateTime% after name so it adds it to the end but before extension.


    Like so:

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard