Estoy tratando de crear una función que devuelva el selector de fecha de apertura devolverá el día siguiente a la fecha de hoy, ejemplo: la fecha de hoy es el 1 de octubre de 2021, por lo que el día siguiente será el 2 de octubre de 2021.
Aquí está mi base de código:
openToDate(val:any){ console.log("val: ", val) return moment(val).toDate(); } <DatePicker customInput={ <React.Fragment> <input tabIndex={this.props.tabIndex} className="exact-date-input" placeholder={this.props.placeholder} autoComplete="off" type="text" maxLength={10} id="date-input" aria-label={ariaLabel} value={this.state.inputValue} onKeyDown={this.onKeyDownDateType} onClick={()=>this.openOrCloseDatePicker(true, this.state.error)} onFocus={()=>this.openOrCloseDatePicker(true, this.state.error)} onBlur={()=>this.emptyIfError(this.state.error)} /> </React.Fragment> } openToDate={this.openToDate(this.props.value)} tabIndex={-1} selected={this.openToDate(this.props.value)} customInputRef="dateInput" autoComplete="off" id={this.props.id} onChange={this.handleInput} required={this.props.required} minDate={moment(today).toDate()} maxDate={moment(endRange).toDate()} open={this.state.datePickerIsOpen} onClickOutside={()=>this.openOrCloseDatePicker(false, this.state.error)} /> ¿Cómo puedo desactivar la fecha de hoy y la selección automática será el día siguiente? 