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

83
Views
¿Cómo puedo hacer que el valor del tiempo seleccionado sea un rango de horas en React?

Quiero que el valor de las horas seleccionadas sea como un rango (11:00 a. m. - 12:00 p. m.), luego el segundo valor sea como (12:00 p. m. - 01:00 p. m.) y así sucesivamente.

Como se muestra aquí en el primer valor de tiempo

Estoy usando ReactTimePicker del paquete react-ts-timepicker.

 <ReactTimePicker value={this.state.selectedTime} //I want here to be as range minTime={this.state.minTime} //09:00am maxTime={this.state.maxTime} //09:00pm step={60} onChange={this.handleChangeTime} allowOnlySuggestions className="future-order-time-input" /> handleChangeTime = (e) => { //To get the format I want (hour,minutes,am/pm) let timeResult = this.parseTime(e, null); let time = this.getTime(timeResult); this.setState({ selectedTime: time }); };
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!