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

Based on a DropDown value, change the date of a datePicker component

 

I have the dropDown on the left, and based on a value selected by the user, I would like to get the date from the "DT_CRONOGRAMA" component and insert into "DT_PLANEJAMENTO_INICIO" adding two more days to that date.

I've tried in several ways, but without success.

 

 

POWERAPPS.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @JasonCastro ,

You need to use the actual Date Picker name, but the DefaultDate of the DT_PLANEJAMENTO_INICIO Date Picker would be

DateAdd(
   DT_CRONOGRAMADatePicker.SelectedDate,
   2,
   Days
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @JasonCastro ,

You need to use the actual Date Picker name, but the DefaultDate of the DT_PLANEJAMENTO_INICIO Date Picker would be

DateAdd(
   DT_CRONOGRAMADatePicker.SelectedDate,
   2,
   Days
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

WarrenBelz
Super User
Super User

Hi @JasonCastro ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

It worked very well, thank you

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,857)