I have an html form
<form onsubmit="return test();">
Start:<input type="date" name=start><br>
End:<input type="date" name=end><br>
Type: <select name = "type">
<input type="submit" value = "Submit"></input>
</form>
and am trying to access the date as an ISOString in a javascript function
function test() {
...
const start = oForm.elements["start"].value.toISOString()
...
}
However, this doesn't work. Any guidance would be greatly appreciated.