Deleting a Date from the Database

I have a Date field in my database that may or may not be required for certain items. And that requirement is flexible; it may be required and then change to not required.

Once I have a date entered in a Form (or the database itself), how do I edit the Date/Time field to be blank again?

Thanks.

Add a button to the form page and use the code. my button is a cross but you can choose whatever

export function yourbutton_click(event) {
$w(“#yourelementname”).value = null ;

thanks. I will try that. What if I just wanted to jump into the database itself and nullify the date? Is that possible?

Yep, just go to my dash board then databases and choose one you want and then delete what ever value you want this transfers to live site in wix