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

228
Views
RNDateTimePicker cambia el formato de fecha de MM/dd/aa a cualquier otra cosa

¿Cómo puedo cambiar el formato de visualización de RNDateTimePicker ?

Una vez que haga clic en la fecha, aparecerá el selector de fecha, después de seleccionar, el formato de fecha de visualización es "MM/dd/yy" . Quiero cambiarlo a "dd/MM/yyyy" ya que es el formato de fecha que uso en la otra pantalla. No puedo encontrar la solución por ahora, incluso en la documentación.

Aquí la fecha de visualización

 <RNDateTimePicker mode="date" value={upTargetStartDate} minimumDate={new Date()} onChangeText={(text) => setUpTargetStartDate(text)} />
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

De acuerdo con la documentación , debe agregar la propiedad dateFormat en su componente RNDateTimePicker y pasar el formato de fecha deseado, que en su caso es: day month year .

 <RNDateTimePicker mode="date" dataFormat="day month year" // --------> added here value={upTargetStartDate} minimumDate={new Date()} onChangeText={(text) => setUpTargetStartDate(text) } />

También puede cambiar el formato con métodos simples de javascript:

 const wrongFormat = "12/20/21" const [month, day, year] = wrongFormat.split("/") const correctFormat = `${day}/${month}/${year}` console.log(correctFormat)

about 4 years ago · Juan Pablo Isaza Report
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!