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 - In fu...
Power Automate
Answered

Power Automate - In function 'formatDateTime', the value provided for date time . The datetime string must match ISO 8601 format

(0) ShareShare
ReportReport
Posted on by 4

Below I was trying to retrieve month. flow was working fine for more than 2 months but all of a sudden it started giving issue - 

 

'In function 'formatDateTime', the value provided for date time string '13/11/2023 10:57 AM' was not valid. The datetime string must match ISO 8601 format.'.

 

Unable to figure out why all of sudden this occurred. 

 

Below are the steps I performed

1. Convert to time zone to IST.

2. Compose to convert to dd/mm/yyyy.

3. Compose to get month - formatDateTime(body('TimeFormat'), 'MMMM').

 

snehay_0-1699858869153.png

 

 

Categories:
  • Verified answer
    Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    That's the issue:

    > 2. Compose to convert to dd/mm/yyyy.

     

    Power Automate expects dates as ISO 8601 formated strings (google this!)

     

    American date formats (e.g. “10/31/2023”) also work (I recommend not to use them).

    That's why your flow used to work somehow, but with incorrect dates because days and months were swapped.

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    Correction: Your date string dd/mm/yyyy must have always produced garbage since mm is the minutes.

  • snehay Profile Picture
    4 on at

    Thanks @Chriddle. 

    Yeah I just saw the data was incorrect. 

     

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
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard