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 Automate / To compute the coming ...
Power Automate
Unanswered

To compute the coming Friday's date

(0) ShareShare
ReportReport
Posted on by 274

Hi Flow Users, I'm working on a Flow that help in a weekly report generation in SharePoint. I would need to append the coming Friday's date to the report name. The report generation can be triggerred on a Monday or a Tuesday. E.g. If a trigger the report generation flow today (29/07/2019), then i need to append a coming Friday's date to the file name, i.e. 02/07/2019. Any help appreciated. Thanks, Kevin

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,143 on at

    Hi @kevingeorget 

     

    Try this

    Since Friday is always going to be the 5th day of the week

     

    We can first do a check to see if todays day is before coming Friday

     

    Condition

    sub(5,dayOfWeek( utcNow())) greater than 0
     
    If Yes - 
    addDays(utcNow(),sub(5,dayOfWeek( utcNow())))   - should give you Friday's date
     
    If No - 
    addDays(utcNow(),add(sub(5,dayOfWeek( utcNow())),7))  - should give you Friday's date

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • takolota1 Profile Picture
    4,974 Moderator on at

    How to get the date of the next upcoming day of the week.
    Choose a day of the week, ex: 5 for Friday, and get the date of the next Friday starting from utcnow().

     

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Date-of-Next-Chosen-Day-of-Week/td-p/1466540

     

    I often see requests for timing things a certain time on a certain day of the week and people respond with an expression formula for that person’s requested day of the week and only their requested day of the week. With this, we shouldn’t need to find a different formula for each day.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard