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

Help on a formula on PowerApps?

I have an app where users can select either a red, amber or green button and based on it, i want to create a formula that adds a certain amount of months to today's date:


If user press Red, Today() + 3 months

                    Amber: Today() + 6 months

                    Green: Today() + 12 months

So if i press Red, i will get 08/01/2020


How can i construct the formula to yield the added amount of month?


Super User
Super User


You can use the DATEADD function like this:


Red: DateAdd(Today(), 3 , Months)

Amber: DateAdd(Today(), 6 , Months)

Green: DateAdd(Today(), 12 , Months)


Here's the general function parameters:

DateAdd( DateTimeAddition [, Units ] )


Link to Documentation

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,048)