Whenever I try to reset a date input using JavaScript, like so:
//input_id is an id of a date input
document.getElementById(input_id).value = "0000-00-00";
I get a warning in the console:
The specified value "0000-00-00" does not conform to the required format, "yyyy-MM-dd".
Does anyone know a way to suppress this warning so it won't show? The JS keeps on running smoothly but I want to get rid of these warnings.
If you have another way of resetting a date input (without raising a warning) I will be happy to hear.
Thanks in advance.