title: How to disable past dates from today date with Material ui reactjs?
body: <p>I'm creating date range picker with react material ui. My logic behind this functionality is to select required date and if required date has been selected, disable all past dates from selected dates. How to implement this react material ui?</p>
  
  <p>Here is my code,</p>
  
  <pre><code>import React from 'react';
  import {render} from 'react-dom';
  import DatePicker from 'material-ui/DatePicker';
  
  function disablePrevDates(date) {
    return date.getDay() === 0;
  }
  
  class App extends React.Component {
      render() {
          return (
              &lt;div&gt;
                  &lt;DatePicker hintText="Check-in" shouldDisableDate={disablePrevDates} /&gt;
              &lt;/div&gt;
          )
      }
  }
  
  export default App;
  </code></pre>