MVC5 Classic
Set Date Ranges

The following code shows how to set the minDate option and the maxDate option to show a specific range of dates:

<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#calendar1").wijcalendar({
            displayDate: new Date('2012/01/1'),
            minDate: new Date('2012/01/16'),
            maxDate: new Date('2012/01/25')
        });
    });
      </script>

This topic illustrates the following:

The following calendar displays a specific range of dates from January 16, 2012 to January 25, 2012:

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback