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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (73,401)