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

Help with a countdown timer

(0) ShareShare
ReportReport
Posted on by

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,841 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
    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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard