cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to set datepicker with hour field

Hello, I am trying to set a datepicker control. How do I implement it so it also gets the input hour?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous 

 

DateField.SelectedDate & " " & Time(Value(HourDropdown.Selected.Value), Value(MinutesDropdown.Selected.Value), 0)

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

4 REPLIES 4
RezaDorrani
Dual Super User
Dual Super User

Hi @Anonymous 

 

check this

https://powerusers.microsoft.com/t5/General-Discussion/Date-Time-Picker-Missing-Time/td-p/49940

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

It worked, thanks. How do I put the separates values from the datepicker and the dropdown selections into one date formated label? like dd/mm/yyyy hh:mm? 

Hi @Anonymous 

 

DateField.SelectedDate & " " & Time(Value(HourDropdown.Selected.Value), Value(MinutesDropdown.Selected.Value), 0)

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Anonymous
Not applicable

Hello, @RezaDorrani 

 

Do you know how to convert an string "10:00" to hour format? Thanks

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (5,423)