how to get date and time from html and put it in html datetime class code example Example: input datetime <input type="datetime-local">