Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Compare time to see if they match midnight local time

(0) ShareShare
ReportReport
Posted on by

I have 2 fields in my SharePoint list. Both of them are date/time. I'm trying to see if both of the times in the date/time fields are equal to midnight. Users will often enter midnight for the 2 fields (in addition to the date of course).

 

I can't seem to figure out how to make sure that when the comparison is done, there are no problems when the time changes in and out of DST. Any ideas?

 

Also, what's the best way to compare just the times? 

 

Thank you.

 

  • Verified answer
    PrasadAthalye Profile Picture
    on at
    Re: Compare time to see if they match midnight local time

    You can use Convert time zone action on both the datetimes and provide long time as format so that it will return only times. Convert both of them to a timezone that you want and then compare...

     

    PrasadAthalye_0-1622078695111.png

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1