Re: does SP's get items filter query support compare on date strings?
I wound up using
"TravelDate lt '@{addDays(utcNow(), -10, 'MM\/dd\/yyyy')}'" since using dashes resulted in no matches.
In any case, SP is doing a text compare.
- If I use MM as in the format above, the filter evaluates to "TravelDate lt '09/10/2019'" which returns no records since expressions starts with a 0.
- If I use "addDays(utcNow(), -10, 'M\/dd\/yyyy')", it evaluates to "TravelDate lt '9/10/2019'" and retuns dates with a month starting it an 8 or less.
I read somewhere that there is a 'dateTime' quailifier used on constant dates but I lost the article. I am thinking maybe that can be used on the column Name. I was hoping there was a way to pass in the column name as an expression with @ and {} syntax but it seems the flow editor either doesn't allow it or the filter doesn't allow the column name to be used in formula.
I will see if I can find that article that uses a non parenthesized way to express a date but I supect that won't work either. I guess I'll just need to live with "filterArray" and some overhead code if this doesn't work out.
Thanks.