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 / Change Date Format in ...
Power Automate
Answered

Change Date Format in MS flow

(0) ShareShare
ReportReport
Posted on by 5

Hi, 

 

I have created Flow with the date (Created), however, it comes in a format that looks like YYYY-MM-DDT10:00:00Z.  I want it to be like MM/dd/YYYY.

 

I tried 

 

formatDateTime(triggerBody()?['Created'],'MM/dd/yyyy')

 and I am getting a string that looks like "formatDateTime(triggerBody()?['Created'],'dd/MM/yyyy')" instead of the actual date 

 

I would be thankful if you could help me with it

 

Let me know if you need more details 

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @Bader0Alrajhi 

     

    Your expression looks correct , but make sure you click on "expression" and paste it there.

    format.png

     

    -------------------------------------------------------------------------

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @Bader0Alrajhi 

    I have created a sample flow of whenever an item is created in the list. I had initialized the string variable with the following expression.

    formatDateTime(triggerBody()?['Created'], 'MM/dd/yyyy')

    When I ran the flow, I got the datetime as formatted. Please refer the screenshot below.

    Datetime initialize.png

     After running the flowCreated.png

     formatted.png

     

    Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue

    -Sudharsan K...

     

     

  • v-bacao-msft Profile Picture
    on at

     

    Hi @Bader0Alrajhi ,

     

    The method provided by @sudharsan1985 and @DeepakS are all work for your questions.

    We need to write an expression in Expression editor and apply it in the field.

    Please take a try and feel free let us know if you have any other questions.

     

    Best Regards,

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard