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 / Time differenance sele...
Power Apps
Unanswered

Time differenance selection

(0) ShareShare
ReportReport
Posted on by

Hello so I'm trying to work out how I would do the following and Google and YouTube have been no help.

 

So I have a text in put in a edit/view form that display the time and date as 20/09/2023 00:00(it's like this as I couldn't get the list to accept the time and date when the column was set to date. The time and date is put into list from a different screen i manually set up that also sends out a outlook meeting request.)

 

If the time and date is in the past then on selection of a button i want to go to one screen if the date is in the future go to another. 

 

Even if it was two separate buttons and they are only visible due to certain dates. How do I get the if formula to read the text input date as text to create a if formula?

 

I can send screen shots if required

 

 

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    If(DateDiff(Now(),DateValue1.SelectedDate,TimeUnit.Days) < 0, Navigate(InPastScreen), Navigate(InFutureScreen))

     

    DateDiff will return the difference between 2 dates in the specified time unit. This means we want to see how many days are between Now() and the selected date in the date picker. If the date is in the past then the function will return a negative number saying that it is in the past and if the number is positive then you are in the future or after todays date. The only thing you have to decide now is which side the 0 will go to. If you want 0 to be past then it will be <= 0 and if you want 0 to count as the future then you can leave it as is.

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard