Update: 28 February 2020, This problem has now been resolved and the Add to time now calculates the next month better.
Today I came across problem with calculating dates in Microsoft Flow.
Today’s date is 30 April 2018. I did a calculation using the Date connector in Microsoft Flow and found that add 1 month gives me 31 May 2018. This is potentially better than expected as I found the last day of the month.

But now I’m trying to add 3 months

Now I’m getting 29 July 2018. We seem to have lost a few days there!
Then I thought maybe adding 3 times 1 month will give me the result.

addToTime expression
After the above tests I tried using the addToTime function instead:
addToTime(variables(‘Date’),1,’Month’)
But these give the same result
I’m not sure what to suggest at the moment other than upvoting the following bug
https://powerusers.microsoft.com/t5/I-Found-A-Bug/Add-months-doesn-t-work/m-p/111352#M2134

Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There’s a better way — and I can show you exactly what it looks like.
I’m the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide.
For over 30 years I’ve been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions.
SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://staging.sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/
Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://staging.sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/
You can contact me using contact@staging.sharepains.com
Leave a Reply
You must be logged in to post a comment.