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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

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

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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 (3,073)