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

Text time format

Hi All,

I am using 2 dropdowns for Hours and Minutes and then combining them in a DataCard. All works fine EXCEPT it display in AM/PM rather than 24hr, which is what I'd prefer. Been looking for ages, but can't seem to find out why. Any Ideas?

Default of DataCard: Time(Value(StartHourDropdown_1.Selected.Value), Value(StartMinutesDropdown_1.Selected.Value), 0)

ScreenshotScreenshot

I'm assuming I've got myself into a mess with Text/Number combinations. But it's late in the day and my brain is tired 🙂

Kev

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@KevinHardy 

Hello again my friend.  Hopefully I can be of some service to you here.

Putting this code in your label would result in 7AM displaying as 07:00 and 7PM displaying as 19:00.

 

Text(
    Time(
        Value(StartHourDropdown_1.Selected.Value),
        Value(StartMinutesDropdown_1.Selected.Value),
        0
    ),
    "hh:mm"
)

 

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

@KevinHardy 

Hello again my friend.  Hopefully I can be of some service to you here.

Putting this code in your label would result in 7AM displaying as 07:00 and 7PM displaying as 19:00.

 

Text(
    Time(
        Value(StartHourDropdown_1.Selected.Value),
        Value(StartMinutesDropdown_1.Selected.Value),
        0
    ),
    "hh:mm"
)

 

---
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 understand why but I would never have got there without you 🙂

Kev

 

p.s. 2 finished apps now 🙂

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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