cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
garywalker Helper I
Helper I

adding months to a date gives strange behaviour

i ha ve a flow which adds either 1,3 or 12 months to a date field but i am getting inconsitant behaviour does anyone have any ideas?

add one month.PNGadding one month gives a month and a dayadd three months.PNGadding three months is giving 2 days less than 3 monthsadd twevle months.PNGadding 12 months gives exactly 12 months

2 REPLIES 2
Community Support
Community Support

Re: adding months to a date gives strange behaviour

Hi @garywalker,

 

I did a test on my side and I also met the situation you mentioned.

The span of adding a month here should be without considering that this month may have 30/31/28/29 days.

I did the another test, and when I alternate between the leap year and the peace year, there will be a day when I add 12 months.

36.PNG

So I suggest changing the Time unit to Day will be more precise.

 

Best Regards,

Barry

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.
Highlighted
garywalker Helper I
Helper I

Re: adding months to a date gives strange behaviour

Thanks for looking in to this for me.

Unfortunately, we really need it to be adding months as day/weeks would not meet our acceptance criteria. Where would be the best place to raise this as a bug?

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,270)