PureJS 일자 + 시간 ( 시간 초까지 표현법 ) 문의
추천0 비추천 0
페이지 정보
작성자 k학점 작성일 2023-02-20 13:38 조회 576회 댓글 0건제품 버전 : 5.20213.824
컨트롤 이름 : wijmo.input.InputDateTime
본문
관련링크
var dt = wijmo.DateTime var curr = new Date(), firstDay = $("#my_sdate").val(); lastDay = $("#my_edate").val(); if ( firstDay == "" ) { firstDay = new Date(curr.setDate(curr.getDate() )); } if ( lastDay == "" ) { lastDay = new Date(curr.setDate(curr.getDate() - curr.getDay() + 6)); } var theStartDate = new wijmo.input.InputDateTime('#reg_date', { format: 'yyyy-MM-dd HH:mm', value: null, min: firstDay, max: lastDay, valueChanged:function(i,e){ }, }); theStartDate.addEventListener(theStartDate.hostElement,"click", function(s){ theStartDate.isDroppedDown = true; theStartDate.isAnimated = true; // 에니메이션 theStartDate.isEditable = false; theStartDate.dropDownCssClass = 'custom-dd' ; // Css 개별 적용 });
포멧이 format: 'yyyy-MM-dd HH:mm', >> format: 'yyyy-MM-dd HH:mm:ss', 는 안되는지?
웹 화면에는 분까지만 나옴. 초까지 컨트롤 하는 방법은
댓글목록
등록된 댓글이 없습니다.