cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
senen
Frequent Visitor

Day 15 of Last month

Hi there, 

 

I need to run a flow on the first of every month. 

It runs a stored procedure that grabs data from day fifteen of the previous month to the End of the Previous Month

 

End of Previous month seems to be : addDays(startofmonth(utcnow()),-1)

Can you help me figure out how can I get the day fifteen of previous month? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Day 15 of Last month

Hi @senen ,

 

You can get the day fifteen of previous month based on the method you provided for the End of the Previous Month.

Please try this expression:

addDays(startOfMonth(addDays(startOfMonth(utcNow()),-1)),14)

Or you need a time format like 'yyyy-MM-dd':

addDays(startOfMonth(addDays(startOfMonth(utcNow()),-1)),14,'yyyy-MM-dd')

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Re: Day 15 of Last month

Hi @senen ,

 

You can get the day fifteen of previous month based on the method you provided for the End of the Previous Month.

Please try this expression:

addDays(startOfMonth(addDays(startOfMonth(utcNow()),-1)),14)

Or you need a time format like 'yyyy-MM-dd':

addDays(startOfMonth(addDays(startOfMonth(utcNow()),-1)),14,'yyyy-MM-dd')

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

senen
Frequent Visitor

Re: Day 15 of Last month

You are awesome thank you!

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,909)