I have an input on my webpage that I am able to set the date on by getting an ISO string and pulling out the first 10 characters.
date = new Date(); dateInpu
If it's an actual date input on a supporting browser, then it will have a valueAsDate property. There's no need to parse it.
date