cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Englishweb
Post Patron
Post Patron

DatePicker to text Patching problem

Hello

I have converted a datepicker date to text in a label called Datelabel. in a Gallery: 

Text(DatePicker.SelectedDate,"[$-en-GB]dd/mm/yyyy")    

This displays the date correctly, however,

When I try to patch the label Datelabel.Text  to the Excel datasource I get an error does not match expected DateTime. Found type 'Text' (I've tried patching the datapicker date to Excel but I always get the American format)

Why won't it patch a .text value here?

11 REPLIES 11

Thanks @mdevaney  and @Paul_C for your help. 

I have now converted the datepicker to text, which is patched to an Excel 'text ' format column as you suggested.

NOT refreshing the datasource in the app after reformatting the column was the source of the Patching problem.

Easy to overlook - lesson learned!

@Englishweb
The nice thing is when you learn the lesson about Refresh you never forget it again. At least that’s how it went for me lol.

I’m glad you it’s working for you now. Best of luck in building your app!

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,064)