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 / Save datepicker to col...
Power Apps
Answered

Save datepicker to collection

(0) ShareShare
ReportReport
Posted on by 250

Am trying to save a date from a date-picker to a collection.

Here is my attempt:

ClearCollect(
 Questionaire,
 { Manager_COLUMN: 'DRP_Manager-Selection_Manger_Section'.Selected.Login,
 Collaborateur_COLUMN: 'DRP_Collaborateur-Selection_Manger_Section'.SelectedText.Title,
 Nb_de_PDS_COLUMN: Value('TXT_PDS-Vus_Manager_Section'.Text),
 Duree_COLUMN: 'DRP_Duree-Selection_Manager_Section'.Selected.Value,
 Evaluation_COLUMN: 'DRP_Evaluation-Score_Question_1'.Selected.Value,
 Commentaire_COLUMN: 'TXT_Commentaire-Box_Question_1'.Text,
 Date_Validation_COLUMN: DatePicker_Manager_Section
 }

 Date-picker being the last one in the code.

I tried .SelectedDate but error.

Thank you for your helps.

 

Categories:
  • timl Profile Picture
    37,420 Super User 2026 Season 2 on at

    @loopingmurdock 

    What error message do you get when you reference DatePicker_Manager_Section.SelectedDate ?

  • loopingmurdock Profile Picture
    250 on at

    Given type are incompatible, when i type this in the collect()

    Date_Validation_COLUMN: DatePicker_Manager_Section.SelectedDate
  • Verified answer
    timl Profile Picture
    37,420 Super User 2026 Season 2 on at

    Is there any other place in your app where you Collect data into the Questionaire collection?

    To verify if this is related to the above, if you collect the data into new collection (say Questionaire2), do you still see the same error?

    ClearCollect(
     Questionaire2,
     { Manager_COLUMN: 'DRP_Manager-Selection_Manger_Section'.Selected.Login,
     Collaborateur_COLUMN: 'DRP_Collaborateur-Selection_Manger_Section'.SelectedText.Title,
     Nb_de_PDS_COLUMN: Value('TXT_PDS-Vus_Manager_Section'.Text),
     Duree_COLUMN: 'DRP_Duree-Selection_Manager_Section'.Selected.Value,
     Evaluation_COLUMN: 'DRP_Evaluation-Score_Question_1'.Selected.Value,
     Commentaire_COLUMN: 'TXT_Commentaire-Box_Question_1'.Text,
     Date_Validation_COLUMN: DatePicker_Manager_Section
     }
    )

     

     

  • loopingmurdock Profile Picture
    250 on at

    The error came from my Patch() from an other code, but thank to your help that made me look

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard