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 / Date was not valid. Th...
Power Automate
Answered

Date was not valid. The datetime string must match ISO 8601

(0) ShareShare
ReportReport
Posted on by 145

Hi everybody

in a Excel file I have a data so format 4/13/24 16:30 PM (m/dd/yy and Time)

I need to convert it i 'yyyy-mm-dd' only date without time

I have put this to filter the file

"$filter": "@{formatDateTime('Start_x0020_Date','yyyy-MM-dd')} GE @{triggerBody()['date']}"

 but I get this error: 

'In function 'formatDateTime', the value provided for date time string 'Start_x0020_Date' was not valid. The datetime string must match ISO 8601

Many thanks

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Giorgio67 

    In you Excel action, set the Date Time format to ISO8601

    image.png

  • Verified answer
    Giorgio67 Profile Picture
    145 on at

    No, so easy😂

    to fix I have create a filter (@and(greaterOrEquals(formatDateTime(item()?['Start Date'], 'yyyy-mm-dd'), formatDateTime(triggerBody()['date'], 'yyyy-mm-dd')), lessOrEquals(formatDateTime(item()?['Start Date'], 'yyyy-mm-dd'), formatDateTime(triggerBody()['date_1'], 'yyyy-mm-dd')))

    and un SELECT to get only value that I want

    Many thanks ScottShearer for suggest

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard