cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tguihur
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
mdevaney
Super User III
Super User III

@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
mdevaney
Super User III
Super User III

@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

Thank you @mdevaney  I will do that.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,702)