Language:

Search

how to add datetime picker in HTML

  • Share this:
post-title
post-title

In the input tag use type as datetime-local as shown below
 

<form action="/next_page_name.php">
  <label for="dayandtime">Date and Time</label>
  <input type="datetime-local" id="dayandtime" name="dayandtime">
  <input type="submit">
</form>
Ammar Javed

Ammar Javed

Still Learning | Still Searching | Still Exploring | The secret of your success is determined by your daily agenda.