An alternative to datetime-local?
2 answers
You can use <input type="date"> <input type="time">
together. Personally, I think this is why datetime-local was removed. There are also great polyfills, for example: http://afarkas.github.io/webshim/demos/index.html
+1
source to share
In my case, I tried a lot of things, but nothing looked perfect, finally I came up with this workaround to split the date and time into two inline inputs and remove the border between them so that it looks like one input variable:
<form action="" class="form-inline">
<div class="form-group">
<input class="form-control" style=" border-right-style: none" type="date" max="9999-12-12T00:00:00.00" />
</div>
<div class="form-group">
<input class="form-control" style=" border-left-style: none" type="time" max="9999-12-12T00:00:00.00" />
</div>
0
source to share