I have a scheduled flow which I want to search multiple date fields in an Excel table each day to see if today is 3 days before the date in the fields, and if yes, to send me an email based on some other field conditions.
I've got as far as scheduling the flow and getting the items from the table (with ISO8601 formatting), but with regards to comparing the times, when this flow runs the condition returns a 'false' output, even though the date in the field is set to 3 days from today (today is 13/12/21 and the date in my table is 16/12/21):
formatDateTime(item()?['Start date'], 'yyyy-MM-dd')
is equal to
formatdatetime(addDays(utcNow(), -3), 'yyyy-MM-dd').
Can anyone see what I'm missing? I've done this code for just one of my date columns, "Start date", and am hoping to just repeat it with some more conditions to check the other date columns I want a reminder email for.
I wonder whether I have to convert the time before this step (although I'm not sure about how to do this for multiple fields as most of the flows I've seen have only done this for one), or whether I need to do something to shorten the time format first as whilst the date is 3 days after today, the time the response was submitted will be different to that of the date that's being searched for (T00:00:00.0000000Z).
