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

Community site session details

Session Id : wTDvNaaqU+bNJWPgKMzXhr
Power Apps - Building Power Apps
Answered

Why day of week is not showing?

Like (0) ShareShare
ReportReport
Posted on 26 Feb 2019 21:36:09 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,289 Super User 2024 Season 1 on 26 Feb 2019 at 22:03:30
    Re: Why day of week is not showing?

    @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 26 Feb 2019 at 22:36:10
    Re: Why day of week is not showing?

    Thanks for replying. It is a text column.

    Gulf_man

  • Community Power Platform Member Profile Picture
    on 26 Feb 2019 at 22:40:16
    Re: Why day of week is not showing?

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

    Thanks for you help.

  • RandyHayes Profile Picture
    76,289 Super User 2024 Season 1 on 26 Feb 2019 at 23:21:24
    Re: Why day of week is not showing?

    @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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard