cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
twister
Post Partisan
Post Partisan

date save into collection

Hi, how do I cater for my below case?

 

I have input date to patch into collection. The DefaultDate property I have set to Now() to get current date. The issue if after I Patch to collection, the invoice date will display to default current date.. How do I to display the date that I have selected before save to collection?

 

For below case, I have already select 1/3/2021 for my invoice date..

 

In Collection:

twister_1-1617023634077.png

But still display current date after patch..

 

twister_0-1617023559776.png

Thanks

17 REPLIES 17
Bilakanti
Responsive Resident
Responsive Resident

@twister ,

 

Are you resetting your Datepicker control, after patching it into collection?

twister
Post Partisan
Post Partisan

Not reset after patch

Bilakanti
Responsive Resident
Responsive Resident

@twister ,

I have reproduced your scenario and it's working fine me. I have taken a simple datepicker control and stored the selected date in collection, and shown the collection items in gallery. And on click on collect button, it collects the selected date into collection. The catch here is the datepicker control still shows the user selected date. Below is the screencapture.

Bilakanti_0-1617028481491.png

 

twister
Post Partisan
Post Partisan

after patch, here is my next action..

twister_0-1617029427533.png

 

Try to implement as yours but error..

 

twister_1-1617029496276.png

 

Bilakanti
Responsive Resident
Responsive Resident

@twister 
invoicedate:DatePicker1.SelectedDate, but you have added it as just selected that's why it's showing syntax error.

twister
Post Partisan
Post Partisan

its same..

twister_0-1617029740213.png

 

Bilakanti
Responsive Resident
Responsive Resident

@twister ,

 

can you help on showing me, what is the error that you are getting, in the screenshot I can't see what is the actual reason for those red underlines.

twister
Post Partisan
Post Partisan

this error sir..

twister_0-1617064645134.png

 

Bilakanti
Responsive Resident
Responsive Resident

Are you using the same collection anywhere with some other value/different datatype for invoicedate?

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,270)