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 / Check if a date has pa...
Power Apps
Answered

Check if a date has passed

(0) ShareShare
ReportReport
Posted on by 40

Hi all,

 

I was wondering if I could get some help. For my app.

I need to check if the current date is after October 1st of each year. For example, now I want to check if the current date is past October 1st 2020 whereas in January I want to check if the date is past October 1st 2021, so the year has to be dynamic.

Any help would be greatly appreciated.

Categories:
I have the same question (0)
  • Bovi Profile Picture
    40 on at

    Hi All, 

     

    I think I have it, Ill post my solution here if anyone needs it

    DateDiff(Today(),DateValue(Concatenate("1/10/",Text(Year(Now())))))

    This returns a negative number if the date has passed, and a positive number if it hasn't. 

     

    If anyone had a more elegant solution, that would be great.

  • Verified answer
    timl Profile Picture
    37,271 Super User 2026 Season 1 on at

    Hi @Bovi 

    Thanks for your question and for sharing your solution.

    Here's how I would approach this:

    (Today() > Date(Year(Now()),10,1))

    This formula will return true if the data is passed, and false if it hasn't.

    The key difference is that this formula calls the Date function to build target date of 1st October.

    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-date-time

    The DateValue syntax that you specify has a dependency on a date format of dd/mm/yyyy.

    This means that if a user in the US ran your app (or if a user setup their phone with US settings), the formula would compare today's date against 10th Jan. The Date function mitigates this potential problem.

  • Bovi Profile Picture
    40 on at

    Hey @timl ,

     

    That's a much more elegant solution, I'll implement that now. 

     

    It never occurred to me that users may be using it with their date an another format, that's a super useful tip to keep in mind moving forward!

     

    Thanks again. 

  • timl Profile Picture
    37,271 Super User 2026 Season 1 on at

    You're welcome @Bovi - glad to help!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard