title: How to set maxDate is last day of december on current year?
body: <p>I have this date range datepicker : </p>
  
  <pre><code>$(function () {
    //date picker range 
    $(function () {         
      var dateFormat = "mm/dd/yy",
        from = $("#&lt;%= TextBox1.ClientID %&gt;").datepicker({
          //defaultDate: "+1w",
          changeMonth: true,
          minDate: MinDateManipulation(),
          beforeShowDay: DisableMonday,
          maxDate: '+2M',
          numberOfMonths:1
        })
        .on("change", function () {
          to.datepicker("option", "minDate", getDate(this));
        }),
        to = $("#&lt;%= TextBox2.ClientID %&gt;").datepicker({
          //defaultDate: "+1w",
          changeMonth: true,
          beforeShowDay: DisableMonday,
          maxDate: '+2M',
          numberOfMonths:1
        })
        .on("change", function () {
          from.datepicker("option", "maxDate", getDate(this));
        });
      function getDate(element) {
        var date;
        try {
          date = $.datepicker.parseDate(dateFormat, element.value);
        } catch (error) {
          date = null;
        }
        return date;
      }
    });
  </code></pre>
  
  <p>It work when i tried to disable date from 2 months after current date, but the purpose is, to disable date in January 1st every next year after current year.</p>
  
  <p><strong><em>for example : current date [11/3/2018]</em></strong></p>
  
  <p>I want to disable date to chose after last day of December every current year, with maxDate <code>[31/12/2018]</code>.</p>
  
  <p>But how do we set dynamically for the value of the maxDate? without update the value of the year manually with my daterange condition script?</p>