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 / 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,270 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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard