Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

230
Vistas
RNDateTimePicker change date format from MM/dd/yy to anything else

how can I change the display format of RNDateTimePicker?

Once click the date, the date picker will pop up, after select, the display date format is "MM/dd/yy". I want to change it to "dd/MM/yyyy" since it is the date format I use on the other screen. I cannot find the solution for now, even on the documentation.

Here the display date

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

0

According to the documentation, you need to add dateFormat property into your RNDateTimePicker component and pass your desire date's format which in your case is: day month year.

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

You can also change the format with simple javascript's methods:

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda