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 / MySQL row query with d...
Power Automate
Unanswered

MySQL row query with dateTime filter

(0) ShareShare
ReportReport
Posted on by 32

I have a table with a datetime column. I try to filter by it in my query but it fails.

First because it's missing time zone information, but when i add it, it complains that it cannot compare dateTimeZone to dateTime.

 

We cannot apply operator < to types DateTimeZone and DateTime.
 inner exception: We cannot apply operator < to types DateTimeZone and DateTime.
The DateTimeOffset text '2023-05-15T14:15:22.567' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range.
 inner exception: The DateTimeOffset text '2023-05-15T14:15:22.567' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range.
 inner exception: The time zone information is missing on the DateTimeOffset value '2023-05-15T14:15:22.567'. A DateTimeOffset value must contain the time zone information.

 

 

I have tried formatting my date as both "yyyy-MM-ddTHH:mm:ss.FFF" and "yyyy-MM-ddTHH:mm:ss.FFFzzz"

 What can i do to satisfy my MySQL-connector since it's asking for TimeZone-information that it cannot use?

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Slap a "Z" at the end of the string (for Zulu/UTC)

  • shakudu Profile Picture
    32 on at

    That's where my first error message comes, cannot compare DateTimeZone and DateTime.

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    show data examples of the columns you are trying to compare.

  • shakudu Profile Picture
    32 on at

    My column in MySQL is of data type "datetime".

     

    And the data looks like this:

    2021-10-19 00:00:00.000
    2021-08-23 10:41:00.000
    2021-08-23 10:41:00.000
    2021-09-10 23:59:00.000
    2021-09-29 23:59:00.000
    2021-10-08 23:59:00.000
    2021-09-16 23:59:00.000
    2021-09-15 23:59:00.000

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

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard