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 / Highlighting a date
Power Apps
Unanswered

Highlighting a date

(0) ShareShare
ReportReport
Posted on by

I am having a problem with highlighting the birthday months in a list of people. If their birthday is today it is highlighted as yellow, if (this month)Orange and people whose birthday is next month (OrangeRed). I am using the 'TemplateFill' section to  this with the following code

 

 

 

If(Day(ThisItem.DOB) = Day(Today()) And Month(ThisItem.DOB) = Month(Today()),Yellow,Month(ThisItem.DOB) = Month(Today()),Orange ,Month(ThisItem.DOB) = Month(Today())+1,OrangeRed,White)

 

 

 

This works EXCEPT during December where of course the next month should be 1 but calculates to 13. 

Any ideas on how to fix it?

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @peter5164 

    Change … +1 … to

     

    … + If(Month(Today())=12, -11, 1) …

  • peter5164 Profile Picture
    on at

    Simple when you know how!

    Thank you!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard