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 / Convert date format fr...
Power Apps
Answered

Convert date format from a gallery to a collection in Power Apps (mm/dd/yyyy ---> mm/yyyy)

(0) ShareShare
ReportReport
Posted on by 30

Hello, I'm working on an issue related to Power Apps and I need help with converting the date format from a gallery to a collection.

I have a gallery that fetches data from a data source. Within this gallery, there is a column with dates in the "dd/mm/yyyy" format. I would like to transfer the information from this gallery to a collection with the format "mm/yyyy". I've tried modifying the "Default" property of the DatePicker control by setting it to "mm/yyyy", but the format is not saved in the collection.

 

I also attempted to use the following formula: Text(ThisItem.item_SaleDate, "mm/yyyy"), but I couldn't achieve the desired format.

 

I would greatly appreciate it if you could provide me with a solution or alternative to achieve the desired format when saving the data into the collection.

 

Thank you very much for your assistance!

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Santiago241 ,

     

    I've made a test for your reference:

    1\I assume there is a collection:

    ClearCollect(Collection1,{Column1:"A",DateColumn:Today()})

    2\You could try this formula:

    ClearCollect(NewCollection,ForAll(Collection1,{Column1:Column1,DateColumn:Text(DateColumn,"mm/yyyy")}))

    vbofengmsft_0-1710207922577.png

     

    Best Regards,

    Bof

     

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 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard