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 Apps
Answered

Datepicker Bug?

(0) ShareShare
ReportReport
Posted on by 2,157

If I make the DatePicker is editable and patch an entered date the result is always blank.  If I select the date from it picker it selects and patches the correct date.  If I edit the date in a datepicker  by simple type over the result returns blank,  not the new date.  Is this a bug or am I missing a setting somewhere.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @leyburn19 

    I was able to patch to a collection without issue, ie

    Patch(
     colDates,
     Defaults(colDates),
     {
     ID: Value(TextInput1.Text),
     sel_date: DatePicker1.SelectedDate
     }
    )

     

    However, If I tried entering dates like 3/5/21 by typing it would patch blanks. Seems it maybe tied to the Format property? Testing I tried by typing in Dates:

     

    Set Format to: "dd/mm/yyyy"

    Patch Date: 5/3/2021 --> works fine

    Patch Date: 5/3/21 --> Patches a blank

     

    Set Format to: "dd/mm/yy"

    Patch Date: 5/3/2021 --> Patches a blank

    Patch Date: 5/3/21 --> works fine

     

    For both the above Format settings, Patch worked fine when selecting from Date Picker.

     

    I guess the other thing to consider is a data source issue, I've just used a collection here.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    @Anonymous you can always add a check to your code for him to check format if it typed before writing the patched. Just off hand, not on my pc to write it out and make sure it works, but id say you could do a split on "/" then count characters of last section and if is not 4 add the 20 to it then reassemble the date for patching. Ofcourse you would need to update it in like 79 years when we hit 2100 hah

  • Verified answer
    leyburn19 Profile Picture
    2,157 on at

    Thanks all.  the problem was associated with the Date Format.  I had somehow typed dd/mm/yyy instead of dd/mm/yyyy.  The three Y caused the problem

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @leyburn19 ,

     

    Has your problem been resolved?

    If so , you could mark your reply as a solution.

    Thanks.

     

    Best Regards,

    Wearsky

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard