Answer the question
In order to leave comments, you need to log in
The data type of the value is datetime-local. How to convert datetime-local value to seconds?
My html page has a date and time input field
<input type="datetime-local" id="beginlocaldate" name="begindate" step=1></input>
let periodbegin=document.querySelector('input[type="datetime-local"][id="beginlocaldate"]');
console.log(periodbegin.value);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question