]
코드는 다음과 같습니다.
// 날짜
$(' .date' ).datepicker({
changeYear: true,
changeMonth: true,
minDate:null,
maxDate:null,
onClose: function(selectedDate) {
$ ('.gap-date').datepicker('option','minDate', ' 1m');
maxDate:null,
onClose: function(selectedDate) {
var y, m, d;
var arr = selectedDate.split('-');
y = arr[0] ;
m = arr[1] - 7;
d = arr[2];
$( '.date').datepicker('option','maxDate', new Date(y, m , d));