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 / How to clear a date fi...
Power Apps
Answered

How to clear a date field using patch on a CDS record?

(0) ShareShare
ReportReport
Posted on by 601

Dear,
I can set a datefield to the current datetime with:

Patch(MyTable, LookUp(MyTable, MyTableID=ThisItem.ID), {MyDateField: Now()})

But now I also want to be able to clear that field...

I have tried:

 

 

Patch(MyTable, LookUp(MyTable, MyTableID=ThisItem.ID), {MyDateField: Date(Blank(),Blank(),Blank())})

Patch(MyTable, LookUp(MyTable, MyTableID=ThisItem.ID), {MyDateField: Blank()})

 

 

But that doesn't work (it is executed without errors, but the date field of the record is not cleared)?

Categories:
I have the same question (0)
  • timl Profile Picture
    36,713 Super User 2026 Season 1 on at

    Hi @KoenJanssensPD 

    To patch a blank/null date, it's necessary to enable the "formula-level error management" setting. Once you enable that and reload your app, you should be able to patch the value Blank() to your date field.

    timl_0-1623234536114.png

     

     

  • KoJaPD Profile Picture
    601 on at

    @timl sorry, I should have mentioned that I have already enabled that...

  • Verified answer
    timl Profile Picture
    36,713 Super User 2026 Season 1 on at

    That's strange - I just tested it and it works for me. I assume that you did reload the app in the designer after applying the setting, in order for it to take effect?

  • KoJaPD Profile Picture
    601 on at

    OMG... 🙊

    (why don't they have a notification to reload it after changing these settings...?)

  • timl Profile Picture
    36,713 Super User 2026 Season 1 on at

    Hi @KoenJanssensPD 

    I agree - unless you're very familiar with how settings work, it isn't obvious that you need to reload the app. I've added a post in the ideas forum here to suggest that they improve this, and to help prevent other app builders from experiencing the same problem.

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Apply-app-setting-changes-without-requiring-the-user-to-reload/idi-p/950426#M33825

     

  • mneff Profile Picture
    2 on at

    Thank you so much for this.  I wrestled half a day trying to patch a date with blanks, no error, just no result.  How is anyone supposed to figure something like this out if not for the wisdom of folks like you?  Microsoft and Copilot absolutely worthless with anything I asked them about this.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard