daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var endDate = new Date();
  2. var numberOfDaysToAdd = 13;
  3. endDate.setDate(endDate.getDate() + numberOfDaysToAdd);
  4.  
  5. var currDate = new Date();
  6.  
  7. <DatePicker
  8.     dateFormat="YYYY-MM-DD"
  9.     todayButton={"Today"}
  10.     selected={this.state.startDate}
  11.     onChange={this.handleChange}
  12.     highlightDates = {[currDate,endDate]}
  13. />
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top