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 Apps / Condition to check sta...
Power Apps
Unanswered

Condition to check start time and end time and display half day or full day

(0) ShareShare
ReportReport
Posted on by 95

Hi,

I have two dropdowns(start time and end time) in gallery I have one lable1 to calculate time difference between start date and end date , now I have to check time in lable1 and if time difference is 8 hrs or more than 8 hrs .

 

Then I have another label called label2 in that label I have to write condition to check time difference if it is more that greater than equal to 8 Hrs then it should display full day in Label2 if it is below 8Hrs then in Label 2 it should display Half time.

 

I also Have label3 where I have to check condition in Label2 if it display more full time in Label2 in gallery then  in Label3 it should display full time else half time.

Screenshot (89).png

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hemasai1999 ,

     

    Could you please share more details about your app? What are Items of the two time selecting dropdowns? What is Text of the Label1?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • VenuR Profile Picture
    12 on at

    Label1:

    DateDiff( Start Time, End Time, Hours)

    Label2:

    If(Value(Label1.Text) > 8, "Full Day", "Half Day")

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard