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 / Why day of week is not...
Power Apps
Answered

Why day of week is not showing?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

All,

Newbie question. Why is this not returning dayOf Week?

I need to insert dayOfWeek into a sharepoint list via a powerapp interface.

I tried the following code: 

Set (dayOfWeek, Text(Weekday(Now())));

If (dayOfWeek="1", 
 "Sunday", 
 dayOfWeek="2",
 "Monday", 
 dayOfWeek="3",
 "Tuesday",
 dayOfWeek="4", 
 "Wednesday");

When I check the list, it is inserting as 1 , 2 or in Tuesday case 3. Why is it not inserting Tuesday or any other weekday? 

 

Any hint is greatly appreciated.

 

Thanks,

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymouscan you provide more about where you are putting your formula?  Is this on an Update property?

    Also, is the SharePoint column a Text column or Choice?

     

    Also, you might want to consider just using the following formula:

    Text(Now(), "dddd")

    This will return the full name of the weekday for the date (in this case Now(), but you can put any date in there).

     

    Hope this helps some.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for replying. It is a text column.

    Gulf_man

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks. It looks like it is working. I got this Text(Weekday(Now())) from microsoft site. 

    Thanks for you help.

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

    @Anonymousvery good.  However, I thought you were trying to get to an actual formal day name, not a number.

    The Weekday function will return a number.  

    The Text(Now(), "dddd") function will return a formal name (no long If statement to choose the formal name - just a single statement).

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard