cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chase
New Member

Any way to add months to a date value?

Does anybody know how I might be able to add months to a date value? I can make it happen with the adddays function but this isn't entirely accurate since months have a different amount of days. 

 

@adddays(utcnow(),62, 'MMMMMM') works for the most part but will give me the wrong values at the end of months that aren't 31 days long. 

 

Thanks!

5 REPLIES 5
v-monli-msft
Community Support
Community Support

Hi @Chase,

 

It seems that we do not have the addmonths function in flow for now. Did you mean that if the months are 31 days long, the formula will work? How does the wrong value show?

 

Regards,

Mona

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

Say it's january 30th and I add 31 days,  its going to return to me march as the month instead of February. 31 days almost works but will mess up if the next month is less than 31 days.

Anonymous
Not applicable

I have the same problem. The function addtotime should solve this, but it does not accept the definition of interval as Months, like the tutorials i have found said. I dont know what is the correct syntax for this function, there are no proper examples.

PaulD1
Super User
Super User

 

There is an action 'Date Time - Add to time' which takes month as a timeunit, however, when I tried using it to add one month to 1st Feb 2018, I got 4th March 2018 (I'd expect 1st March 2018), so it seems all this does is add 31 days. 😞 

 

Flow Add Month.png

 

 

 

I escalated this to our Dynamics support team, and it is now resolved. Adding 1 month will take the months number of days into consideration. If you add 1 month to 8/31/2019 you will get 9/30/2019 (you used to get 10/1/2019). Keep in mind, if you add 1 month to 9/30/2019 you will get 10/30/2019.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,307)