Input type DateTime Value format with HTML

JavascriptWeb DevelopmentFront End Scripts

Use input type=”datetype”. The datetime input type is used in HTML using the <input type="datetime-local">. Using this, allow the users to select date and time. A date time picker popup is visible whenever input field is clicked.

<!DOCTYPE html>
      <title>HTML input datetime</title>
      <form action = "" method = "get">
         Student Name<br><input type = "name" name = "sname"><br>
         Exam Date and Time<br><input type = "datetime-local" name = "datetime"><br>
         <input type = "submit" value = "Submit">
Published on 05-Apr-2018 15:12:58