Hi all,
Inside the flow I set condition to campare a data field WhenDeleteSite (D1) with following expression
formatDateTime(utcNow(),'yyyy-MM-dd')
In practice the condition is true when D1 is today. D1 is calculated field in a Sharepoint list
During the test I found a bizarre behaviour.
This is the scenario:
D1 = 31 August (see attachment)
Today = 31 August
but the condition is not satisfied.
Inside the flow an email is sent where the condition is not satisfied and I discovered the D1 value is not the same displayed. Here details:
1. WhenDeleteSite: 2023-08-30T22:00:00Z
2. WhenDeleteSite Formatted: 2023-08-30
3. Today: 2023-08-31T15:20:09.4898765Z
Note about above value:
1. Dynamic content
2. formatDateTime(first(outputs('Get_items')?['body']?['value'])?['WhenDeleteSite'],'yyyy-MM-dd')
3. utcNow()
So, display value doesn't match value by get items
Maybe timezone can determine the difference? ...other idea about difference?
Tks