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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / display current time z...
Power Apps
Answered

display current time zone suffix

(0) ShareShare
ReportReport
Posted on by

This formula gives the UTC  time.

 

What I need:

I need to display in a label what exactly the time zone is?

CST

EST

GMT

PST

 

only: United States

 

Is there a way to revise the code below to display that suffix ?

 

"UTC"
& If(TimeZoneOffset() > 0, "-", "+")
& RoundDown(Abs(TimeZoneOffset()) / 60, 0)
& ":"
& If(Mod(Abs(TimeZoneOffset()), 60) < 10, "0", "")
& Mod(Abs(TimeZoneOffset()), 60)

 

Thanks

Dave

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Try the following instead

    Switch(Text(TimeZoneOffset(Now())/60),"5","EST","6","CST","7","MST","8","PST")
  • Community Power Platform Member Profile Picture
    on at

    @Pstork1 

    Thanks,

    I also used:

    If(TimeZoneOffset() > 0, "-", "+")
    & RoundDown(Abs(TimeZoneOffset()) / 60, 0)
    & ":"
    & If(Mod(Abs(TimeZoneOffset()), 60) < 10, "0", "")
    & Mod(Abs(TimeZoneOffset()), 60)

     

    ON A LABEL:

    f(lbl_timeutc.Text = "-6:00", "CST",
    lbl_timeutc.Text = "-5:00", "EST",
    lbl_timeutc.Text = "-7:00", "MST",
    lbl_timeutc.Text = "-8:00", "PST",
    "DONTKNOW")

     

    Thanks

    dave

  • Community Power Platform Member Profile Picture
    on at

    @Pstork1 

     

    do you happen to know the values for Canada Time Zones ?

     

    Dave

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Here's a site that lists them.

    Canada Time Zone Abbreviations (timetemperature.com)

  • Community Power Platform Member Profile Picture
    on at

    @Pstork1 

    Thank you very much.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard