Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Set Variable as DayofWeek from Now()

(0) ShareShare
ReportReport
Posted on by 15

Good Day,


I want my Chatbot to check if the current date time is within a specific timeframe (ex. Tuesday between 11AM and 12PM). I can't figure out how to get the DayofWeek from Now() in the formula. DayofWeek function doesn't seem to exist nor does Weekday. I am looking for something like...

If(Weekday(Now())=3,true,false) <==Check if it is Tuesday

Or

If(And(Weekday(Now())=3,Hour(Now())>=11,Hour(Now())<12), true, false) <==Check if the current Date Time is within Tuesday between 11 and 12)

  • Verified answer
    dian74 Profile Picture
    63 Most Valuable Professional on at
    Re: Set Variable as DayofWeek from Now()

    I don't believe this is supported today. https://powerusers.microsoft.com/t5/General/PVA-Unified-Canvas-Power-Fx-Support/m-p/1919018#M4686

  • buddhasbuddy Profile Picture
    15 on at
    Re: Set Variable as DayofWeek from Now()

    I realise I could use Power Automate to do this but can't it be done in PVA?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard