cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kosenurm
Post Prodigy
Post Prodigy

If time now is 3pm or after and DatePicker = tomorrow, make visible...

Hi there, 

 

I have a text label in my Power App which currently only appears based on the conditions I have below - "IsLDNBased" is a global variable which I set based on the user when the app is loaded. 

 

 

If(Or(IsLDNbased = "London", User().Email = "specificemailaddress@email.com"), false, true)

 

 

I want to add to this, ignoring the current conditions above entirely, to not display the label if the time now is 3pm UK time or afterwards AND if the date selected in the DatePicker is equal to tomorrow's date.

 

Any ideas please?

 

Thanks

K.

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks, I solved it with...

 

If(Or(IsLDNbased = "London", User().Email = "email@email.com", And(LDN_Date_Picker.SelectedDate = DateAdd(Today(),1), TimeValue(Now()) >= TimeValue("12:00 PM"))), false, true)

View solution in original post

2 REPLIES 2
Sundeep_Malik
Super User
Super User

Hey @Kosenurm 

 

Try this:

 

If(Or(IsLDNbased = "London", User().Email = "specificemailaddress@email.com",DatePicker1.SelectedDate=Today()+1,TimeValue(Now())>=Time(16,0,0)), false, true)

 

If the above does not work you can make separate or statements.

Thanks, I solved it with...

 

If(Or(IsLDNbased = "London", User().Email = "email@email.com", And(LDN_Date_Picker.SelectedDate = DateAdd(Today(),1), TimeValue(Now()) >= TimeValue("12:00 PM"))), false, true)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,405)