In which format should I put the date and time, for use in the HTML5 input element with datetime type?
I have tried:
133857550201/06/2012 19:3101/06/2012 19:21:002012-06-012012-06-01 19:312012-06-01 19:31:00
None of them seem to work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For
<input type="datetime" value="" ...http://www.w3.org/TR/html-markup/input.datetime.html#input.datetime.attrs.value
Update:
Why is HTML5 input type datetime removed from browsers already supporting it?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime