title: How to set day of a date in moment?
body: <p>I want to set the date to another day, then add 1 to the date.</p>
  <pre><code>    onModalPrevDate=()=&gt;{
          this.closeModal();
          let d=this.state.selectedDay;
          let dateContext = Object.assign({}, this.props.dateContext);
          let c=moment(dateContext).set(&quot;days&quot;,d);  //not working as intended
          let f=moment(c).add(1,&quot;day&quot;);
          let a=f.format(&quot;D&quot;);
          this.onDayClick(a);
      }
  </code></pre>
  <p>moment(dateContext).set(&quot;days&quot;,d); is not working as intended. have tried &quot;day&quot; instead of &quot;days&quot; still not working.</p>