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

Community site session details

Session Id : 6zCij7TeoXDKKbWd56eK9T
Power Apps - Building Power Apps
Unanswered

Set Visible Time in Future?

Like (0) ShareShare
ReportReport
Posted on 15 Apr 2021 18:50:29 by

I have a splash screen (label control) I need to display in my app at a certain date time AND TIMEZONE. 

OnStart of app:

- Set(varNow, Now())

 

Visible property of label control:

- If(varNow >= DateTimeValue("4/20/2021 06:00:00 AM"), true, false)

 

The challenge is, I'm on Pacific time developing the app but need the splash screen to show at 0600 Central time. 

 

I've always been a bit fuzzy on how PowerApps handles this because it does some things "automagically". 

 

Ideas?

Categories:
  • Pstork1 Profile Picture
    67,165 Most Valuable Professional on 15 Apr 2021 at 19:23:05
    Re: Set Visible Time in Future?

    Yes, that's exactly what I was suggesting.  You may have to make some other provisions if you are worried about Daylight savings vs Standard time in the future.  For example you want it to only display during working hours so you are testing a range from 6:00 AM to 6:00 PM and want it to work on any day of the year.  But for this specific request just hard coding the time for the equivalent in CDT will work.

  • Community Power Platform Member Profile Picture
    on 15 Apr 2021 at 19:10:57
    Re: Set Visible Time in Future?

    Thank you @Pstork1 . I follow you on the first assertion: Changing varNow to UTC time. 

     

    I'm not quite following on the second: "Then compare that to 6:00 am adjusted from UTC to Central timezone."


    Should I change the comparison time to 11AM UTC (6AM CDT)?

    If(varNow >= DateTimeValue("4/20/2021 11:00:00 AM"), true, false)

  • Pstork1 Profile Picture
    67,165 Most Valuable Professional on 15 Apr 2021 at 19:01:44
    Re: Set Visible Time in Future?

    When setting your varNow in OnStart adjust it for UTC like this.

    Set(varNow,DateAdd( Now(),TimeZoneOffset(Now()),Minutes))

    Then compare that to 6:00 am adjusted from UTC to Central timezone.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2