Introduction
In this blog, we will understand how to create a clock in Power Apps using Timer control.
Step 1. Add Timer control to your app and set the duration property of timer control to 1000 (representing 1 second). In the OnTimerEnd property, write the given formula to update the variable with the current time.
Set(CurrentTime,Now())
![Creation of clock in Power Apps]()
Set AutoStart and Repeat property to “true”.
![Creation of clock in Power Apps]()
Step 2. Set the text property of time to the following formula.
Text(CurrentTime,DateTimeFormat.LongTime)
![Creation of clock in Power Apps]()
Implementing a clock in Power Apps can be useful in various scenarios, such as tracking the duration of a task or displaying live time updates in your application.