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 / Apply text format to d...
Power Apps
Answered

Apply text format to data present in Collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi PowerUsers, 

I have this collection called "PayPeriColl" which holds the data of Pay Period Start and Pay Period End.
I'm making this collection on AppOnstart with the following code. 
It gathers the record from a response returned by Flow / Power-Automate.

collections.png

 

This is the result it returns 

PayPeriodColleection.png

 

I want to apply format to these columns Like "dd/mm/yyyy". 

As i have to display the result in a drop down. 
Currently I am concatenating PayPeriod Start and Pay Period End from this record set and storing it in a collection called "PayPeriodRange" (See first image above).

This is what I have achieved with it 

range.png

and this is what being displayed in drop-down 
dropdown result.png

 

How can I apply format to record set in collection so that I may be able to display these pay periods in "dd/mm/yyyy" format ? 

Best Regards,
Ali Nawaz

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    In this case, you can try out the below expression on the Drop-down control directly. You can eliminate the usage of collection if it is not used elsewhere.

    Expression:

    AddColumns(CollectionName,"MyColl",Text(DateValue(PeriodStartDate),"[$-en-US]dd/mm/yyyy")&"-"&Text(DateValue(PeriodEndDate),"[$-en-US]dd/mm/yyyy")).MyColl

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @yashag2255 Thanks man it worked perfect. 

    I was missing Datevalue while casting the PayperiodStarts into texts. 

    Thanks again  🙂 


    Best Regards, 
    Ali Nawaz

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard