HTML <입력 유형="날짜 시간-로컬">
예시
날짜 및 시간 컨트롤 표시(시간대 없음):
<label for="birthdaytime">Birthday (date and time):</label>
<input type="datetime-local"
id="birthdaytime" name="birthdaytime">
정의 및 사용
<input type="datetime-local">
날짜 선택기를 정의합니다 .
결과 값에는 연도, 월, 일 및 시간이 포함됩니다.
팁:<label>
최상의 접근성 사례를 위해 항상 태그를 추가하십시오 !
브라우저 지원
표의 숫자는 요소를 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Attribute | |||||
---|---|---|---|---|---|
type="datetime-local" | 20.0 | 12.0 | 93.0 | 14.1 | 11.0 |
통사론
<input type="datetime-local">