web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / display value doesn't ...
Power Automate
Unanswered

display value doesn't match get item

(0) ShareShare
ReportReport
Posted on by

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
 
Screenshot 2023-08-31 alle 17.49.34.png
 
 
During the test I found a bizarre behaviour.
This is the scenario: 
D1 = 31 August (see attachment)
Sharepoint list.png
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

Categories:
I have the same question (0)
  • dani135 Profile Picture
    32 on at

    Hello,


    I think the time zone may be a factor. Instead of formatDateTime(utcNow(), 'yyyy-MM-dd'), could you try formatDateTime(utcNow(), 'yyyy-MM-dd', 'Pacific Standard Time')

  • AC-21101901-0 Profile Picture
    on at

    Using timezone in formatDateTime an error is raised. So I used convertTimeZone in the condition

     

    formatDateTime(convertTimeZone(items('Apply_to_each')?['WhenDeleteSite'], 'UTC', 'Romance Standard Time'),'yyyy-MM-dd') 

    equal to

    formatDateTime(utcNow(),'yyyy-MM-dd')

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard