Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Display on birthday if date field match

(0) ShareShare
ReportReport
Posted on by 438

Screenshot 2024-01-29 at 1.58.38 PM.png

  • jrletner Profile Picture
    720 Super User 2025 Season 1 on at
    Re: Display on birthday if date field match

    @dylandavis09 I created this example. This shows the user birthday and then a trimmed version of it. The same for Today's date. Then I have an icon and a message that appear if the dates match and the user chose "Yes" on whether to show the message. For my example, I used a collection as my datasource, but you can easily adjust it for your datasource and columns.

    jrletner_0-1706559544961.png

    To trim the birthday:

    Text(DateValue(userBirthday.Text),"mm/dd")

    To trim today's date:

    Text(Today(),"mm/dd")

    The code in the visible property of the birthday message:

    If(userBdayTrimmed.Text = todaysDateTrimmed.Text && showBirthday.Text = "Yes",true,false)
  • dylandavis09 Profile Picture
    438 on at
    Re: Display on birthday if date field match

    I found it and fixed; correct is Filter('DHS All Users', Birthday = Today())

  • dylandavis09 Profile Picture
    438 on at
    Re: Display on birthday if date field match

    Yeah! Birthday is a datefield. Still error, why! I using "default" is a property, and items put it in 'DHS All User'.Screenshot 2024-01-29 at 2.38.39 PM.png

  • mmbr1606 Profile Picture
    12,857 Super User 2025 Season 1 on at
    Re: Display on birthday if date field match

    maybe the issue was that i forgot that one is a datefield in sharepoint.

     

    can u try this please:

    Text(Today(), "MM-dd") = Text(ThisItem.Birthday, "MM-dd")

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • dylandavis09 Profile Picture
    438 on at
    Re: Display on birthday if date field match

    Still error.. Error message: "Incorrect format specifier for 'Text'."

    Screenshot 2024-01-29 at 2.30.39 PM.png

  • mmbr1606 Profile Picture
    12,857 Super User 2025 Season 1 on at
    Re: Display on birthday if date field match

    try this instead

    DateDiff(
     DateValue(Text(Today(), "MM-dd-yyyy")),
     DateValue(Text(ThisItem.Birthday, "MM-dd") & "-" & Text(Today(), "yyyy")),
     TimeUnit.Days
    ) = 0

     

    what do you mean with the yes part?

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • dylandavis09 Profile Picture
    438 on at
    Re: Display on birthday if date field match

    Error Message: Incorrect format specifier for 'Text'. Remember, I need to add "Yes" if they wants to visible.

    Screenshot 2024-01-29 at 2.22.57 PM.png

     

  • mmbr1606 Profile Picture
    12,857 Super User 2025 Season 1 on at
    Re: Display on birthday if date field match

    try this for the gallery:

     

    Text(Today(), "MM-dd") = Text(ThisItem.Birthday, "MM-dd")

     

    you just nee to change the Birthday column to the on you have

  • dylandavis09 Profile Picture
    438 on at
    Re: Display on birthday if date field match

    Correct, in the gallery.

  • mmbr1606 Profile Picture
    12,857 Super User 2025 Season 1 on at
    Re: Display on birthday if date field match

    do you show the birthday also in the gallery or outside in a text label?

     

    for the visible property you could do something like this:

     

    Text(Today(), "MM-dd") = Text([YourDataSource].Birthday, "MM-dd")

     

     

    In this formula, replace [YourDataSource] with your actual data source name and adjust any field names as necessary.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >