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 / Help with a countdown ...
Power Apps
Answered

Help with a countdown timer

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

I hope I can explain somewhat correctly what I want 🙂

 

So... I got this label (Label33) where I have calculated when the SLA expires for an errand, for example: "2021-04-16 17:50:04". Right now the time is "2021-04-17 15:59:00" can I somehow make a countdown in a timer:

 

Now() - DateTimeValue(Label33.Text)

 

 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Anonymous maybe a push into a direction

     

    Add a date time picker and two text boxes to keep the SLA detail

    rubin_boer_0-1618582681799.png

    Add a timer and Text = DatePicker1.SelectedDate -Today() & "day "
    & Text(Time(Value(TextInput2.Text) -Hour(Now()), Value(TextInput3.Text)-1 - Minute(Now()), (Timer1.Duration-Timer1.Value)/1000), "[$-en-US]hh:mm:ss")

     

    rubin_boer_1-1618582730483.png

    now whenever the app open it will so the time to go.

     

    hope this gives some direction

  • Verified answer
    Liam_Chapman Profile Picture
    187 on at

    HI @Anonymous ,

     

    I would suggest making use of a timer.

    So setting a variable every second with the current time:

    Liam_Chapman_1-1618583148731.png

     

    and then use that variable to calculate the difference in dates:

    DateDiff(CurrentTime, DateTimeValue(Label33.Text),Days)


    Noting that 'Days' could be Hours/Minutes/Seconds depending on what you require.

    Thanks,

    Liam.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello! This works, thanks! Just one more question... I want it to countdown in "hh:mm:ss" How do I do that?

  • ChadRobbins Profile Picture
    56 on at

    Text(Time(0, 0, (Timer1.Duration-Timer1.Value)/1000), "hh:mm:ss")

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 514

#2
WarrenBelz Profile Picture

WarrenBelz 419 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 295

Last 30 days Overall leaderboard