NlsCalendar Professional
addobject.com
Year Range
NlsCalendar Professional - Advanced Calendar Control
   

By default, you can select any year with the calendar. You can also limit the year selection within certain period/range.

Click on the "Pick" button to shows the calendar.

Date:

  • The example above returns date with format 'date-month-year'.
  • Year selection is limited to 1984-2020.
  • Time selector is disabled.
  • The calendar mode is floating (0) which is the default mode.
  • autoUpdate is off and autClose is on.

Example code:


                //creates the calendar.
                <script>
                  var cal=new AOCalendar("cal1");
                  cal.opt.themeDir="../themes/default/";
                  cal.opt.dtFormat="$dd-$dm-$YY";
                  cal.opt.autoClose=true;
                  cal.opt.autoUpdate=false;
                  cal.opt.sClose=true;
                  cal.opt.yrRange=[1984, 2020];
                  cal.render();
                </script>