cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

TimeFormat - How to choose hours

Hi Everyone,

 

I wonder how a user can edit or select hours.  I use the datepicker control with property DateTimeFormat.ShortTime

as the following image, but I get the calendar instead of time(hours).

 

 

Time.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: TimeFormat - How to choose hours

@tguihur 

Do not use a DatePicker for this.  Instead, create two new dropdowns.

 

Dropdown_Hours:  put this code in the Items property

["00","01","02",...,"22","23"]

 

Dropdown_Minutes: put this code in the Items property

["00","01","02",...,"58","59"]

 

More details here...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Is-there-a-TIME-PICKER/m-p/65322/highlight/t...

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
 

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: TimeFormat - How to choose hours

@tguihur 

Do not use a DatePicker for this.  Instead, create two new dropdowns.

 

Dropdown_Hours:  put this code in the Items property

["00","01","02",...,"22","23"]

 

Dropdown_Minutes: put this code in the Items property

["00","01","02",...,"58","59"]

 

More details here...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Is-there-a-TIME-PICKER/m-p/65322/highlight/t...

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
 

View solution in original post

Highlighted
Helper I
Helper I

Re: TimeFormat - How to choose hours

Thank you @mdevaney  I will do that.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,824)