Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

Power Automate Expression, week start date and week end date for Today

Like (0) ShareShare
ReportReport
Posted on 23 Jan 2024 05:14:23 by 527

Hi

Request a Power Automate Expression, week start date and week end date for Today
Ex : India Time Zone
Today = 23-01-2024
Week start Date = 22-01-2024 (Monday)
Week End Date =28-01-2024 (Sunday)
 
Thanks & Regards
  • knsrinath Profile Picture
    527 on 24 Jan 2024 at 04:38:49
    Re: Power Automate Expression, week start date and week end date for Today

    Hi @v-yueyun-msft

     

    Thank You!

     

    Regards 

  • Verified answer
    v-yueyun-msft Profile Picture
    on 23 Jan 2024 at 05:42:42
    Re: Power Automate Expression, week start date and week end date for Today

    Hi , @knsrinath 

    You can use this code to get the Monday:

     

     if(equals( dayOfWeek(utcNow()) ,0) , addDays(utcNow(),-6) , addDays(utcNow(), sub(0, sub(dayOfWeek(utcNow()),1)) ) )

     

    You can use this code to get the Sunday:

     

    addDays( if(equals( dayOfWeek(utcNow()) ,0) , addDays(utcNow(),-6) , addDays(utcNow(), sub(0, sub(dayOfWeek(utcNow()),1)) ) ) , 6)

     

     

    The result is as follows:

    vyueyunmsft_0-1705988596773.png

     

     

     

    Best Regards,

    Yueyun Zhang

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started