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

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

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

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,334)