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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,299)