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 / help to get ComboBox t...
Power Apps
Answered

help to get ComboBox to display default date

(0) ShareShare
ReportReport
Posted on by 166

I cannot figure out how to set the default value in a combobox if it is a date.  

 

Items for the ComboBox is set to "WeekList"

Weeklist is a table (see below)

Daved1_1-1647707450476.png

 

I set the DefaultSelectedItems to First(Weeklist) or First(Weeklist.Value)

 

Daved1_0-1647707408096.png

 

the result is a number Value

 

Daved1_2-1647707587573.png

 

I tried to set the format using Text function

But because its a date field this does not work (?)

 

Text(First(Weeklist), "mmm dd yyyy") - does not work

Text(First(Weeklist.Value), "mmm dd yyyy") - does not work

 

Any ideas

Thanks

Dave

 

Categories:
  • Verified answer
    EddieE Profile Picture
    4,650 Moderator on at

    @Daved1 

    Add this to the Items

    ForAll(WeekList, 
     {
     DateValue:Value, 
     DateDisplay:Text(Value, "dd mmm yy")
     }
    )

    * change the format to suit your needs

     

    This isn't my solution, I found it here via a quick Google search.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard