input datetime
snippet in html

input datetime

user9547

<input type="datetime-local">

input datetime without time

user7631

<input type="date" required>