I have several date only columns (no time can be selected) that return either "YYYY-MM-DDT05:00:00Z" or "YYYY-MM-DDT06:00:00Z", which makes things odd and difficult to deal with.
I don't know why the timepart is different…
How, with REST API, can I filter these columns with only using the date part, and without worrying about the time part?
For example, if my field shows: "2021-09-19" I'd like to do the below filter:
$filter=ColName eq datetime'2021-09-19'
Using a date range to cover the whole day (.e.g $filter=ColName ge datetime'2021-09-19T00:00:00Z' and ColName lt datetime'2021-09-20T00:00:00Z'
) won't work with a list with more than 5,000 items.
I could also test the T05:00:00Z
and T06:00:00Z
but it looks like a dirty hack, and I'm not sure this is tied to my own timezone?!
I need to use the /items
end point (I cannot use the /getitems
with CAML query).
Is there a parameter that I missed to make it work?