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
//기본 시작날짜가 종료날짜보다 크게x
//       종료날짜가 시작날짜보다 작게x  
var dates = $( "#startDate, #endDate ").datepicker({
          prevText: '이전 달',
          nextText: '다음 달',
          monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
          monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
          dayNames: ['일','월','화','수','목','금','토'],
          dayNamesShort: ['일','월','화','수','목','금','토'],
          dayNamesMin: ['일','월','화','수','목','금','토'],
          dateFormat: 'yy-mm-dd',
          showMonthAfterYear: true,
          yearSuffix: '년',
          onSelect: function( selectedDate ) {
            var option = this.id == "startDate" ? "minDate" : "maxDate",
              instance = $( this ).data( "datepicker" ),
              date = $.datepicker.parseDate(
                instance.settings.dateFormat ||
                $.datepicker._defaults.dateFormat,
                selectedDate, instance.settings );
            dates.not( this ).datepicker( "option", option, date );
          }
     });
 
//최소 최대 날짜커스텀 설정
 
$('#ID').datepicker({
          maxDate: 설정날짜,
          minDate: 설정짜
    });
cs