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 / Change Backgroundpictu...
Power Apps
Answered

Change Backgroundpicture according to seasons

(0) ShareShare
ReportReport
Posted on by 5

Hey!

I have an application and would like to change the background, according to the Season we are in. Like a snowy Mountain in Winter, Beach in Summer etc. Is this Possible? I have 4 Pictures selected and would like to have one for every season.

 

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Yes, you could use a Switch() statement that uses Month(Today()) to determine the month at that moment and use different images. If you need to nail it down to the exact day, there is a Day() function that splits out the day value too.

     

    Hope that helps,

    Bryan

  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can use something like the expression below:

    With(
     { currentDate: Today(), currentYear: Year(Today()) },
     If(
     currentDate < Date(currentYear, 3, 19), WinterPicture,
     currentDate < Date(currentYear, 6, 20), SpringPicture,
     currentDate < Date(currentYear, 9, 22), SummerPicture,
     currentDate < Date(currentYear, 12, 21), AutumnPicture,
     WinterPicture // Rest of the year
     )
    )

    Notice that it will have a few issues:

    • The actual dates when the seasons start change in different years, so you may need to update it or accept that in some years the image will change a little early / late.
    • If anyone on the Southern Hemisphere is running your app, they will see the opposite seasons where they are.

    Hope this helps!

  • Reto1 Profile Picture
    5 on at

    Thank you for the fast response with this Solution. Very helpfull 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard