how to take timedate input from user in javascript code example Example: input datetime <input type="datetime-local">