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 / Dropdown Items propert...
Power Apps
Answered

Dropdown Items property Date formatting issue

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Scenario:

- Dropdown control

- Items property set to:

 

 

SortByColumns(
 AddColumns(
 Distinct(
 colAllRecords,
 PLN_STRT_DT
 ),
 "planStartDateFormatted",
 Text(Result, "[$-en-US]mm-dd-yyyy") //<---Formatting not being respected
 ), 
 "planStartDateFormatted", 
 Ascending
)

 

 

- Original PLN_STRT_DT is in ISO8601 datetime format ("2020-01-01T00:00:00Z")

- I'm trying to show a more user friendly format using ("01/01/2020")

- But the formatting is not being reflected in the Dropdown control

 

ericonline_0-1610732218112.png

- Clearly seen here as well:

ericonline_0-1610732377508.png

 

What am I missing?


Thank you

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @ericonline 

    Looks like it is seeing it as text.

    Try the following:

    SortByColumns(
     AddColumns(
     Distinct(
     colAllRecords,
     PLN_STRT_DT
     ),
     "planStartDateFormatted",
     Text(DateTimeValue(Result), "[$-en-US]mm-dd-yyyy") //<---Formatting not being respected
     ), 
     "planStartDateFormatted", 
     Ascending
    )

    I hope this is helpful for you. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That worked!

    (Wrapping my head around this):

    - So we converted the Text-type column to DateTimeValue, then back to Text.

    - The interim step there allowed PowerApps to apply the formatting.

    - Yeah, that makes sense to me.

    - Another trick up the sleeve for future apps. 

    Thanks again!

    ericonline_0-1610734519442.png

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @ericonline 

    Yep, you got it.  Since the date was in ISO time, we needed to let PowerApps turn it into its date type, then we could format it with the standard text function.

     

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard