web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / date save into collection
Power Apps
Unanswered

date save into collection

(0) ShareShare
ReportReport
Posted on by 418

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

Categories:
  • Bilakanti Profile Picture
    1,226 on at

    @twister ,

     

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

  • twister Profile Picture
    418 on at

    Not reset after patch

  • Bilakanti Profile Picture
    1,226 on at

    @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 Profile Picture
    418 on at

    after patch, here is my next action..

    twister_0-1617029427533.png

     

    Try to implement as yours but error..

     

    twister_1-1617029496276.png

     

  • Bilakanti Profile Picture
    1,226 on at

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

  • twister Profile Picture
    418 on at

    its same..

    twister_0-1617029740213.png

     

  • Bilakanti Profile Picture
    1,226 on at

    @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 Profile Picture
    418 on at

    this error sir..

    twister_0-1617064645134.png

     

  • Bilakanti Profile Picture
    1,226 on at

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

  • twister Profile Picture
    418 on at

    yes..should be same...

    twister_0-1617073693867.pngtwister_1-1617073730981.pngtwister_2-1617073762032.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard