cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KevinHardy
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
mdevaney
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
mdevaney
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
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 (21,002)