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

Notifications

Announcements

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

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:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard