cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chiranjay
Helper II
Helper II

Passing Date Picker Selected Date To A Textbox

Hi All,

 

I want to know, is there a way/formula/function to pass the selected date of a 'Date Picker' to a Text box? I couldn't find a way to do that and tried to use the value property of the date picker but there isn't a property named value.

 

Could someone help me with this?

 

Kind regards,
Chiranthaka

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@chiranjay 

Information in PowerApps is by reference, not by passing.

So, if you want your TextInput control to have the date selected in the DatePicker, then set the Default property of your TextInput control to:  yourDatePickerName.SelectedDate

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@chiranjay 

Information in PowerApps is by reference, not by passing.

So, if you want your TextInput control to have the date selected in the DatePicker, then set the Default property of your TextInput control to:  yourDatePickerName.SelectedDate

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks @RandyHayes this worked.

 

Do you know of any instances where a text field will literally just refuse to accept or display this value.

I have been using an APP i published for 8 months and yesterday one of the text fields just stopped displaying the value from one of the date pickers!

I changed the formula, I modified the text box, I even had it write to a label and then update the text box with the label value and..... Nothing - Text box says Nope - Driving me absolutely nuts

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.

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 (2,557)