In the past, Bootstrap's date and time selection plugin was used. In this case, the first js file needs to be introduced. In fact, using HTML5 can quickly achieve the goal:
<!DOCTYPE HTML>
<html>
<body>
<form action="/example/html5/demo_form.asp" method="get">
Date and time: <input type="datetime-local" step="01" name="user_date" />
<input type="submit" />
</form>
</body>
</html>