cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Add month into Date

Hi, 
 

I have a question, how can I add 6 months or 1 year to today instead of days.

I only have this formula but I don't want days but months inside it.

Example: Today + 6 months 

 
formatDateTime(addDays(utcNow(), +183), 'yyyy-MM-dd')
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SOL24 ,

 

Yes use mul(12,30)

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

View solution in original post

5 REPLIES 5
Dual Super User II
Dual Super User II

Hi @SOL24 

 

There is no addmonths function.

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#d...

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

Can I multiply 30 * 12? to get 1 year? likewise for 6 months?

Hi @SOL24 ,

 

Yes use mul(12,30)

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

View solution in original post

Frequent Visitor

Like this:
 
formatDateTime(addDays(utcNow(), mul(12,30)), 'yyyy-MM-dd')
 
Thanks for your help 🙂

Yes 🙂

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (31,616)