Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to Convert date format "2023-06-22T15:11:46Z" to "dd-MM-yyyy" ?

(0) ShareShare
ReportReport
Posted on by 1,027

Dear experts,

 

I need to convert this format date: 2023-06-22T15:11:46Z

to only: dd-MM-yyyy

 

I have tried it but no luck:

PeKi72_0-1687447193539.png

 

 

i get the error:

InvalidTemplate. Unable to process template language expressions for action 'Convert_time_zone' at line '0' and column '0': 'In function 'converttimezone', the value provided for date time string '["2023-06-22T15:11:46Z"]' was not valid. The datetime string must match ISO 8601 format.'.

 

P.

  • annetoal Profile Picture
    1,934 Super User 2025 Season 1 on at
    Re: How to Convert date format "2023-06-22T15:11:46Z" to "dd-MM-yyyy" ?

    .

  • CU16021406-1 Profile Picture
    1,027 on at
    Re: How to Convert date format "2023-06-22T15:11:46Z" to "dd-MM-yyyy" ?

    Yes, you are right. Thank you. It works now. Gr. P

  • Verified answer
    annetoal Profile Picture
    1,934 Super User 2025 Season 1 on at
    Re: How to Convert date format "2023-06-22T15:11:46Z" to "dd-MM-yyyy" ?

    Shouldn't your dynamic output 'ResponseDate" expression look like 

     

     

    outputs('ResponseDate') 

     

     

    Can you select it from your dynamic outputs?

     

     

  • CU16021406-1 Profile Picture
    1,027 on at
    Re: How to Convert date format "2023-06-22T15:11:46Z" to "dd-MM-yyyy" ?

    Still received the same error message.

    PeKi72_0-1687449605766.png

     

    formatDateTime('ResponseDate', 'dd-MM-yyyy')
  • annetoal Profile Picture
    1,934 Super User 2025 Season 1 on at
    Re: How to Convert date format "2023-06-22T15:11:46Z" to "dd-MM-yyyy" ?

    Use this expression:

    formatDateTime('2023-06-22T15:11:46Z', 'dd-MM-yyyy')

     

    If this helped, please mark it as a Solution.

     

    Anne

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1