web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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,297 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
    on at

    Thanks for replying. It is a text column.

    Gulf_man

  • Community Power Platform Member Profile Picture
    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,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard