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 / Power Automate Date an...
Power Automate
Answered

Power Automate Date and Time Custom Format Expression

(0) ShareShare
ReportReport
Posted on by

I am using 'Move or rename a file using path' action in my flow to rename a file using a specific date format in the file name. Everything works except the expression below is returning the wrong date.

 

This is the original file name: Customer_.txt

And this is the file name after the flow runs: Customer_20241102121159.txt

This what I would like it to be: Customer_20240502T121159.txt

And this is the expression I am inserting after the underscor '_' :

Customer_@{formatDateTime(convertTimeZone(utcNow(), 'UTC', 'Eastern Standard Time'), 'yyyymmddhhmmss')}.txt

 

Any suggestions to make this right?

Regards

Categories:
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @hdabbas 

     

    As per the expression which you have shared , you have used mm for Month instead of MM, see the correct expression

     

    Customer_@{formatDateTime(convertTimeZone(utcNow(), 'UTC', 'Eastern Standard Time'), 'yyyyMMddhhmmss')}.txt

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • CU01081506-3 Profile Picture
    on at

    Works like a charm. May God bless you today tomorrow and beyond.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard