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 / Is there a way to clea...
Power Apps
Answered

Is there a way to clear a selected date and return the Date Picker field to a blank state?

(2) ShareShare
ReportReport
Posted on by 2
Currently, once a date is selected, the field cannot be reset to empty. Since keeping the field blank is a common use case, especially for optional dates, is there an existing setting or planned enhancement that would allow users to clear the selected date?

Thanks,

Categories:
I have the same question (0)
  • RaghavMishra Profile Picture
    261 on at

    Hi! This is a common request in Power Apps — here's how to handle it.

    The classic DatePicker control

    The classic DatePicker control doesn't natively support "no value selected." The standard workaround is to use a Reset pattern with a toggle variable:

    1. Add a Button labelled "Clear Date".
    2. Set the button's OnSelect to: Set(varResetDate, true); Set(varResetDate, false)
    3. Set the DatePicker's Reset property to: varResetDate
    4. To track whether a date has been selected, use: Set(varDateSelected, false) on clear, Set(varDateSelected, true) in the DatePicker's OnChange.

    The modern DatePicker control (recommended)

    If you're using modern controls, the modern DatePicker supports a null/blank state natively. You can use Reset(DatePicker1) to clear it, or set the DefaultDate to Blank() so it starts empty.

    Checking if date is blank in form logic

    Use IsBlank(DatePicker1.SelectedDate) to check whether a date has been selected before submitting a form.

    References

    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav Mishra — LinkedIn | PowerAI Labs

  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Another "hack" I have used is to add a empty DatePicker to the screen and hide it. I then Patch the relevant Date field when I want to clear it
    Patch(
       DataSource,
       LookUp(
          DataSource.
          . . . . .
       ),
       {YourDateField: dpEmpty.SelectedDate}
    );
    ResetForm(FormName)
    You can put this on a Clear button and it should both clear the datepicker and the field.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • CU10062310-0 Profile Picture
    2 on at
    nice :-) thank you so much for sharing this .
  • KZ-10061259-0 Profile Picture
    2 on at

    I tried below method, but it doesn't work. I don't know why. See below pic attached for details.

    The modern DatePicker control (recommended)

    If you're using modern controls, the modern DatePicker supports a null/blank state natively. You can use Reset(DatePicker1) to clear it, or set the DefaultDate to Blank() so it starts empty.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard