Invalid Datas

I have a page where i made a seach to one specific table by a couple of input parameter, where one of them is of date type.
I also have a Clean Filters action, where i clean the inputs, however the date field won´t clean if i insert a invalid date.
For Example: if i input the 30th of Fevruary, and i try to clean it it just don't clean it.
I tried to assign null date to the editRecord Field, i tried assig  textToDate("1900-01-01").

Anyone came across something like this?

Thanks in advance.

PS: It works fine if i insert a valid date.