Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
Cómo deshabilitar la fecha de hoy y el valor predeterminado del selector de fecha es el día siguiente

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? ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!