How to set start time with datetime-type input value in JS?

130 Views Asked by At

I have a countup app. Here is the thing: https://stackblitz.com/edit/web-platform-mjepwa?file=main.js]

I have this code in my function. It sets from when the timer starts counting. past = Date.parse('2023-02-8 02:20:00'); I want to set the timer with "type="datetime-local" input.

I have no idea how to do it. Thanks in advance!

0

There are 0 best solutions below