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 / Changing Date format o...
Power Apps
Answered

Changing Date format on Gallery

(0) ShareShare
ReportReport
Posted on by 302

Hello,

I wish to change the date format in my gallery from the format originally captured from the SP list.

Virikefe22_0-1668425707852.png

I wish to change it to this format below:

Virikefe22_1-1668425764898.png

Any known solution???

 

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Virikefe22 ,
    You can use the below formula in Text property of label used in Gallery - 

    Switch(Weekday(ThisItem.StartDate),1,"Sunday",2,"Monday",3,"Tuesday",4,"Wednesday",5,"Thursday",6,"Friday",7,"Saturday","No day") & ", " & Text(ThisItem.StartDate,"mmmm dd, yyyy")

    Assumptions - 

    StartDate is the column name

  • Virikefe22 Profile Picture
    302 on at

    Thanks @NandiniBhagya20 

    The column name is Date. I implemented it like you suggested but all showing error. Meanwhile, the date is suppose to be the latest date on the SharePoint list.

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Virikefe22 ,

    Can you please share the error message you are getting?

    Where are you adding this formula, on which control - label, text input, etc.

  • Virikefe22 Profile Picture
    302 on at

    Thanks for your time @NandiniBhagya20

    Now it's showing "No day" (see screenshot below)

    Virikefe22_0-1668438600244.png

     

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Virikefe22 ,
    If you would like to display latest/last modified date or last created date, then you can use -

    With({_date: First(Sort(SPListName,Created, Descending)).Created}, Switch(Weekday(_date),1,"Sunday",2,"Monday",3,"Tuesday",4,"Wednesday",5,"Thursday",6,"Friday",7,"Saturday","No day") & ", " & Text(_date,"mmmm dd, yyyy"))

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    And remove the "no day" option from switch statement - 

    With({_date: First(Sort(Holidays,Created, Descending)).Created}, Switch(Weekday(_date),1,"Sunday",2,"Monday",3,"Tuesday",4,"Wednesday",5,"Thursday",6,"Friday",7,"Saturday") & ", " & Text(_date,"mmmm dd, yyyy"))

  • Virikefe22 Profile Picture
    302 on at

    Thanks @NandiniBhagya20 

    You're my Baymax 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard