input datetime
<input type="datetime-local">
input datetime
<input type="datetime-local">
html add mindate to datetime-local picker
<form>
<label for="party">Enter a date and time for your party booking:</label>
<input id="party" type="datetime-local" name="partydate" min="2017-06-01T08:30" max="2017-06-30T16:30">
</form>
js datetime local
var date = new Date();
var dd = String(date.getDate()).padStart(2, '0');
var mm = String(date.getMonth() + 1).padStart(2, '0'); //January is 0!
var yyyy = date.getFullYear();
today = mm + '/' + dd + '/' + yyyy;
var time = date.toLocaleTimeString();
var dateTime = "Date: " + today + " and Time: " + time;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us