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 / Comparing dates with t...
Power Apps
Answered

Comparing dates with the time and without a delegation warning

(1) ShareShare
ReportReport
Posted on by 143

Hello,

 

Is there a better way to do this without getting a delegation warning?

Rieus_0-1692867324809.png

 

Categories:
I have the same question (0)
  • gcmfaizan Profile Picture
    1,022 on at

    hi @Rieus ,

     

    can you update your formula like this:

    Year(Datum) = Year(dtpStartDate.SelectedDate) && 
     Month(Datum) = Month(dtpStartDate.SelectedDate) &&
     Day(Datum) = Day(dtpStartDate.SelectedDate)

     

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Thanks!

  • Rieus Profile Picture
    143 on at

    It still gives a delegation warning 😕

    Rieus_0-1692869625324.png

     

  • WarrenBelz Profile Picture
    156,100 Most Valuable Professional on at

    HI @Rieus ,

    I may be missing something obvious here but assuming Datum is a Date field (and you are using SharePoint)

    Filter(
     Tijdsloten,
     'Team nummer' = TeamNr.Value &&
     Datum = dtpStartDate.SelectedDate
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Rieus Profile Picture
    143 on at

    That's what I did at first but it doesn't work at all that way. I assumed it was because of the hours and the minutes. If I could only strip both dates of hours, minutes and seconds perhaps then the comparison would work.

  • Verified answer
    Rieus Profile Picture
    143 on at

    EDIT: I overlooked that I still had a delegation warning. This is the actual solution

    2ND EDIT: There was still an error hidden by a preview feature, your date property should be on the left side and that which it is compared to on the right. See:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/I-changed-the-Display-name-of-table-column-and-now-I-seem-to-get/m-p/2319206/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExMVVRBSE9CSU9NSjJXfDIzMTkyMDZ8U1VCU0NSSVBUSU9OU3xoSw#M579470

     

    Rieus_0-1693554089769.png

     



    Someone on Discord found this solution.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Delegation-warning-using-Month-and-Year-function/m-p/1698902#M432466

     

     

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 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard