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

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

  • 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard