Let’s say you have a query like this:
SELECT COUNT(*) from FerroHistory where FerroHistory.RSDate >= '2021-01-01T00:00:00'
Where FerroHistory.RSDate
is a Datetime obj.
This query won’t return results because you’re comparing 2 different objects: a datetime obj with a string: '2021-01-01T00:00:00'
You can’t implicitly convert so you will have to use a function to convert the string to a datetime obj.
The iso 8601 string in this example can use this function to convert it to a datetime obj: PARSE_DATETIME_ISO8601