cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
senen
Level: Powered On

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 Team
Community Support Team

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.
2 REPLIES 2
Community Support Team
Community Support Team

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.
senen
Level: Powered On

Re: Day 15 of Last month

You are awesome thank you!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 188 members 4,143 guests
Please welcome our newest community members: