Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- spring form tag
- checbox
- maven
- java
- html
- 이클립스
- 네이버스마트 에디터
- Oracle
- HTML5
- 한글
- 오라클
- 전자정부 표준프레임워크
- 호환성
- MYSQL
- 웹 플랫폼 설치 관리자
- 문자열
- SSL
- RADIO
- JSTL
- 스크립트
- 톰캣
- json
- 날짜
- null
- switch
- @RequestBody
- exception
- php
- DB
- jquery
Archives
- Today
- Total
개인적인 정리
datetimepicker mindate 설정 본문
1. 오늘을 선택할 수 없도록 하는 것이 요구사항.
$(document).ready(function(){
var tomorrowDate = tomorrowDate();
$('#exhaustDate').datetimepicker({
lang:'ko',
timepicker:false,
format:'Y-m-d',
minDate: new Date(tomorrowDate)
});
});
function tomorrowDate(){
var tomorrowDate ="";
var today = new Date();
var dd = today.getDate()+1;
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd='0'+dd
}
if(mm<10) {
mm='0'+mm
}
tomorrowDate = yyyy+'-'+mm+'-'+dd;
return tomorrowDate;
}
'Script & jQuery' 카테고리의 다른 글
문자열 내 공백제거(javascript) (0) | 2019.04.03 |
---|---|
크롬에서 bxSlider a 태그 링크이동 오류 (5) | 2019.03.27 |
익스에서 a 태그를 이용한 팝업 (0) | 2019.03.20 |
datetimepicker scroll disable (0) | 2019.03.05 |
자바스크립트 오늘 날짜 (0) | 2019.02.24 |
jquery comma 찍기(jQuery Number Format plugin) (0) | 2018.09.22 |
javascript에서 폼 요소 제거하기 (0) | 2018.07.16 |
javascript 로 파일 확장자 및 파일 이름 체크 (0) | 2018.02.20 |