cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Super User

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
Super User

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
Frequent Visitor

Re: TimeFormat - How to choose hours

Thank you @mdevaney  I will do that.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

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,976)