web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Datepicket with dropdo...
Power Apps
Unanswered

Datepicket with dropdown hour and minute

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I would like to be able to validate that on change, what is being entered in not in the past. I was able to do this on the datepicker, but its not looking at the hour and minutes. Any insight>?

 

Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    To do this you'll need to combine the inputs for the datepicker and the dropdowns for hours and minutes:

     

    DateAdd(
     DateAdd(
     DateValue.SelectedDate,
     HourValue.Selected.Value,
     TimeUnit.Hours
     ),
     MinuteValue.Selected.Value,
     TimeUnit.Minutes
    )<Now()

     

    This formula will return true if the combined inputs are in the past. You may have to change the referenced to DateValue (DatePicker), HourValue (DropDown) and MinuteValue (DropDown) to match the actual names of the controls.

  • victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    you can use the formula below to get the selected date and time

    DateValue.SelectedDate + Time(Value(HourValue.Selected.Value), Value(MinuteValue.Selected.Value), 0)

    then you can check if it is in the past or not

    If(
     Now()>DateValue.SelectedDate + Time(Value(HourValue.Selected.Value), Value(MinuteValue.Selected.Value), 0),
     Notify("past"),
     Notify("future")
    )
    

     

    any doubts let me know

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard