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 convert yyyy-MM...
Power Automate
Answered

How to convert yyyy-MM-dd to MM/dd/yyyy in power automate desktop flow

(0) ShareShare
ReportReport
Posted on by 52

I am reading a date format value from Excel in yyyy-MM-dd format and I want to convert it to MM/dd/yyyy in my Power automate desktop flow . Could anyone please tell.

I have the same question (0)
  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at

    @aggneha9821 

    You can try the below approach:

    Deenuji_0-1714312746299.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • aggneha9821 Profile Picture
    52 on at

    @Deenuji @Hi , thanks for help but it's not working for me this method giving current date and time .It's not converting the particular date

     

    For example - 

    I set a variable xyz = 2023-09-31

    Now this date I need to convert in MM/dd/yyyy 

    But by ur method it's giving me current date 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Hey @aggneha9821, looks like you got an answer, but always feel free to check out this article if you have any date issues:

    https://www.linkedin.com/pulse/power-automate-desktop-pad-best-practices-part-1-date-michael-annis/?trackingId=DF7oDEysRd667Xya9izLDg%3D%3D

     

    Regards,

     

    Mike

  • aggneha9821 Profile Picture
    52 on at

    @MichaelAnnis hi , did not get complete answer .below is problem statement 

    For example - 

    I set a variable xyz = 2023-09-31

    Now this date I need to convert in MM/dd/yyyy 

     

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    If your variable is text format yyyy-MM-dd, then you need to convert it back to a date variable before converting it back to a different text variable type:

    MichaelAnnis_0-1714399621166.png

    SET EDLM_yyyymmdd_Dash TO $'''2023-09-31'''
    Text.ConvertTextToDateTime.ToDateTimeCustomFormat Text: EDLM_yyyymmdd_Dash CustomFormat: $'''yyyy-MM-dd''' DateTime=> EDLM
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: EDLM CustomFormat: $'''MM/dd/yyyy''' Result=> EDLM_mmddyyyy_Slash


    Good luck!

  • aggneha9821 Profile Picture
    52 on at

    @MichaelAnnis thanks for reply , but this is the same method I tried before it's not working .In second action it's throwing error as the provided text value can't be converted into valid datetime

  • Deenuji_Loganathan_ Profile Picture
    6,250 Moderator on at

    @aggneha9821 

    Could you pls share your system date time format for our reference? Screenshot would be preferred 

  • aggneha9821 Profile Picture
    52 on at

    @Deenuji plz find screenshot 

    IMG_20240429_203415.jpg
    IMG_20240429_203139.jpg
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    So, in the second screenshot, is it erroring out on Step 2?

    That's very strange because your region should not have any reason to throw this off as we are dealing directly with a text variable.

    I defer to others with non-US regional datetime conflicts.  @Agnius, have you ever dealt with this?

     

    Regards,

     

    Mike

  • aggneha9821 Profile Picture
    52 on at

    @MichaelAnnis yes In second action it's throwing error as the provided text value can't be converted into valid datetime

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
Vish WR Profile Picture

Vish WR 889

#2
Valantis Profile Picture

Valantis 830

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard