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 / how to convert date in...
Power Apps
Answered

how to convert date into day of week

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Does anyone know how i can turn date & time into day of week?

I am using Gallery to show my records and I have create date show in one of the fields i.e. 19/5/2020

Can I have another field that shows TUES?

Database: SharePoint

Screen Shot 2020-05-21 at 11.24.55 AM.png

 

 

Categories:
I have the same question (0)
  • sayyed007amir Profile Picture
    357 on at

    Using this code you can easily convert:

     

    Switch(Weekday(DateColumnName)
    ,1,"SUN",2,"MON",3,"TUE",4,"WED",5,"THURS",6,"FRI",7,"SAT")


    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    where do I put this code? Thank you

  • sayyed007amir Profile Picture
    357 on at

    Text Property of Label.
    image.png

    Or where ever you want to show

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to display weekday of the corresponding date time value within your Gallery?

     

    Based on the needs that you mentioned, I agree with @sayyed007amir 's thought almost. The Weekday() function could achieve your needs.

    Please consider add a Label inside your Gallery, set the Text property of this Label to following:

    Switch(
     Weekday(ThisItem.Start),
     1, "SUN",
     2, "MON",
     3, "TUE",
     4, "WED",
     5, "THU",
     6, "FRI",
     7, "SAT"
    )

    Note: The Start represents the Start Date time type column in your SP List, please replace it with actual column name

     

    Weekday function

     

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Verified answer
    timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @Anonymous 

    You can just add a label and call the Text function to apply a format that displays the day.  This would be easier than calling the Weekday function and writing a Switch statement.

    Text(ThisItem.Created, "ddd")

     

     

    image.png

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 482 Most Valuable Professional

#2
11manish Profile Picture

11manish 459

#3
Haque Profile Picture

Haque 331

Last 30 days Overall leaderboard