I am using React and JSX to return an input field of type "datetime-local". I want the min value to be the date we have today with the current time. I do not know how to write this however.
What I tried :
<input min = {new Date().toLocaleString()} id = "date" type = "datetime-local"/>
which did not work and no min value is set when I choose datetime .