Skip to main content

Notifications

Community site session details

Community site session details

Session Id : NxECLkP3LOnt2mk5dZa0IU
Power Apps - Building Power Apps
Answered

Power Apps Working with Time and Time zones

Like (0) ShareShare
ReportReport
Posted on 24 May 2024 02:43:51 by

Hello, 

I am building into my app a screen that allows my instructors to schedule a class time. My instructors teach in all 4 times zones, so I would like them to be able to select a time for the class in their time zone and it show all 4 based on their selection. I currently have 4 drop downs, 1 for the hours and 1 for the mins by :15 mins. They would then select their time zone and the chart next to it would show the class for each of the zones. Is this possible? I have been researching time, but I am not exactly sure how to use it in Power apps. Will time work with text? Or does it need to be a number? Any help you can provide would be amazing. 


jmccune1_0-1716518379035.png

 

Categories:
  • jmccune1 Profile Picture
    on 24 May 2024 at 04:13:04
    Re: Power Apps Working with Time and Time zones

    🙂

  • jmccune1 Profile Picture
    on 24 May 2024 at 03:31:24
    Re: Power Apps Working with Time and Time zones

    It worked, thank you so much!

  • Verified answer
    v-yueyun-msft Profile Picture
    on 24 May 2024 at 03:12:22
    Re: Power Apps Working with Time and Time zones

    Hi , @jmccune1 

    I test it in my side :

    Pacific Standard Time (UTC-08:00) Pacific Time (US and Canada)
    Central Standard Time (UTC-06:00) Central Time (US and Canada)
    Montevideo Standard Time (UTC-03:00) Montevideo
    Eastern Standard Time (UTC-05:00) Eastern Time (US and Canada)

    vyueyunmsft_2-1716520322046.png

     

    I use this expression in Label-Text:
    With({SelcetedTime:TimeValue(Dropdown1.Selected.Value & ":" &Dropdown2.Selected.Value & " "&Dropdown3.Selected.Value ) },
    Switch(Dropdown4.Selected.Value,
    "Pacific Standard Time" ,$"Class Time:{ DateAdd(SelcetedTime , 8-5 ,TimeUnit.Hours ) } EST {Char(10)} { DateAdd(SelcetedTime , 8-6 ,TimeUnit.Hours ) } CST{Char(10)}{ DateAdd(SelcetedTime , 8-3 ,TimeUnit.Hours ) } MST{Char(10)}{ DateAdd(SelcetedTime , 8-8 ,TimeUnit.Hours ) }PST" ,
    "Central Standard Time", $"Class Time:{ DateAdd(SelcetedTime , 6-5 ,TimeUnit.Hours ) } EST {Char(10)} { DateAdd(SelcetedTime , 6-6 ,TimeUnit.Hours ) } CST{Char(10)}{ DateAdd(SelcetedTime , 6-3 ,TimeUnit.Hours ) } MST{Char(10)}{ DateAdd(SelcetedTime , 6-8 ,TimeUnit.Hours ) }PST" ,
    "Montevideo Standard Time" , $"Class Time:{ DateAdd(SelcetedTime , 3-5 ,TimeUnit.Hours ) } EST {Char(10)} { DateAdd(SelcetedTime , 3-6 ,TimeUnit.Hours ) } CST{Char(10)}{ DateAdd(SelcetedTime , 3-3 ,TimeUnit.Hours ) } MST{Char(10)}{ DateAdd(SelcetedTime , 3-8 ,TimeUnit.Hours ) }PST" ,
    "Eastern Standard Time",$"Class Time:{ DateAdd(SelcetedTime , 5-5 ,TimeUnit.Hours ) } EST {Char(10)} { DateAdd(SelcetedTime , 5-6 ,TimeUnit.Hours ) } CST{Char(10)}{ DateAdd(SelcetedTime , 5-3 ,TimeUnit.Hours ) } MST{Char(10)}{ DateAdd(SelcetedTime , 5-8 ,TimeUnit.Hours ) }PST" ) )

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
mmbr1606 Profile Picture

mmbr1606 39 Super User 2025 Season 1

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#3
DBO_DV Profile Picture

DBO_DV 31 Super User 2025 Season 1

Overall leaderboard
Loading started