react.js

html input tag type "datetime-local" 날짜와 시간

FaustK 2020. 2. 1. 16:07

input tag 에 날짜 시간을 동시에 입력 받을 수 있게 하려면, type="datetime-local" 이런 식으로 지정해 주면 된다.

 

<input type="datetime-local" /> <!-- 개별 입력을 하려면 아래와 같이 --> <input type="date" /> <input type="time" />

 

<input type="datetime-local" />

<!-- 개별 입력을 하려면 아래와 같이 --> 
<input type="date" /> 
<input type="time" />

 

 

날짜와 시간을 입력할 수 있는 태그가 생긴다.

 

#input tag #html #datetime-local

 

http://jun.hansung.ac.kr/CWP/htmls/HTML%20Input%20Types.html

 

HTML Input 요소의 타입들(types)

HTML Input 요소의 타입들(types) 이 장에서는 요소의 입력 타입(type) 들을 설명한다.  Input Type: text 텍스트 입력(text input)위 한 줄의 입력 필드를 정의 text input: Example

  First name:
 
  Last name:
 

jun.hansung.ac.kr