Title: How can I set the start and end calendar dates in dojox.widget.calendar?
Tags: javascript;dojo
Question: How can I set the start and end calendar dates in ```dojox.widget.calendar```?

I'm trying to restrict the user from navigating outside those dates.



Here is another answer: Did you try putting the max and min dates?

See the example below 

```<div maxlength="12" 
data-dojo-type="dijit/form/DateTextBox" 
data-dojo-props="required: true, constraints:{min:'1880-01-01', 
    max: '2020-01-01'}, popupClass: 'dojox.widget.Calendar'"&gt;
```




{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2014:00:01/02/14', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><dojo>', 'Title': 'How can I set the start and end calendar dates in dojox.widget.calendar?', 'ViewCount': 60, 'id': 20889540, 'user_AboutMe': '', 'user_AccountId': 1854275.0, 'user_DisplayName': 'Shavez', 'user_Reputation': 63.0, 'user_Views': 33.0, 'user_id': 1680197.0}}