title: antd datepicker allow date 30 days before current and after current 30 days
body: <p>working on react project using ant design datepicker in which I want pick date from current 30 days before and 30 days after and disable the rest of the dates</p>
  <p>Anyone help</p>
  <pre><code>function disabledDate(current) {
    // Can not select days before today and today
    return current+30 &amp;&amp; current &lt; moment().endOf('day') ;
  }
  
  
  
      &lt;DatePicker
    format=&quot;YYYY-MM-DD HH:mm:ss&quot;
    disabledDate={disabledDate}
   
  
  /&gt;
  </code></pre>
  <p>this code gives current and before that disabled
  its using moment</p>
  <p>Please help</p>