title: extjs5 : How to disable all dates after today's date
body: <p>I am using extjs datefield </p>
  
  <p><code>Ext.create('Ext.form.Panel', {
      renderTo: Ext.getBody(),
      width: 300,
      items: [{
          xtype: 'datefield',
          fieldLabel: 'From',
          maxValue: new Date()<br>
       }, {
          xtype: 'datefield',
          fieldLabel: 'To',
      }]
  });</code></p>
  
  <p>when using this code in extjs 4 it works perfectly to disable all dates after today's date , It done by using  <code>maxValue= now Date()</code> .In extjs 5 the user can't select any day after today's date but it is not disable.
  How can I disable these dates ??</p>
  
  <p>Thanks in advance</p>