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 / How to create a dropdo...
Power Apps
Answered

How to create a dropdown box containing all days of the year

(0) ShareShare
ReportReport
Posted on by 125

Hello everyone,

anyone that can help me with the following issue please:
I would like to have in my form a combo or drop down box where users could pick multiple dates.

Is there any other way rather than having to update dates in the related sharepoint column or using "start" and "end" date?

Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

    @Fedegallo ,

    The best way I can think of is to open a blank excel document, format the first column to your date format you wish.

    Then enter the first day of year in cell A, then drag the + down to 365 to have all dates. Keep those selected and choose table to create a table out of the dates. Save excel file, go into sharepoint and create a list from xls. Then add your list to powerapps data and make the items for your dropdown the list.

  • timl Profile Picture
    36,749 Super User 2026 Season 1 on at

    @Fedegallo 

    Here's the formula to create a list of all days in the current year.

    With({daysInYear:DateDiff(Date(Year(Now()),1,1),
     Date(Year(Now())+1,1,1)
     )
     },
     ForAll(Sequence(daysInYear,0),
     DateAdd(Date(Year(Now()),1,1), Value)
     )
    )

     

    timl_0-1687028473146.png

     

  • turnerj3 Profile Picture
    2,039 on at

    @timl ,

    Hat's off to ya!

  • timl Profile Picture
    36,749 Super User 2026 Season 1 on at

    Thanks @turnerj3!

  • YapaYapa Profile Picture
    125 on at

    Hello @timl ,

    worked like a charm thanks. 
    However, I believe my format is off:

    Fedegallo_0-1687115299508.png


    How can I solve it?

  • Verified answer
    timl Profile Picture
    36,749 Super User 2026 Season 1 on at

    Hi @Fedegallo 

    You can format the date by adding a "DisplayText" column and applying your desired date format. In your combobox control, you would set the DisplayFields property to ["DisplayText"]

    AddColumns(
     With(
     {daysInYear:DateDiff(Date(Year(Now()),1,1),Date(Year(Now())+1,1,1))},
     ForAll(
     Sequence(daysInYear,0),
     DateAdd(Date(Year(Now()),1,1),Value)
     )
     ),
     "DisplayText",
     Text(Value,"dd/mm/yyyy")
    )
    

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard