I'm trying to set the value of an input type=date in React and I'm looking for a way to use valueAsDate and set it to a date object, is there any way to do that?
P.S. I know there are other ways to set the value but my question is specifically about valueAsDate.
input.valueAsDate = new Date()