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

226
Views
Fecha formateada en javascript y firebase y reactJS ISO 8601

me gustaría formatear mi fecha proveniente de firebase al formato 'dd/MM/yyyy' usando javascript. La fecha en la base de datos de firebase es como campo de marca de tiempo. Necesito mostrar en la parte delantera la fecha con el formato ISO 8601

Código para almacenar los valores:

 function NewEPI(){ const [name, setName] = useState(''); const [date, setDate] = useState(''); const db = firebase.firestore(); return <div> <Navbar/> <div className='container-fluid title> <div className='offset-lg-2 col-lg-8 text-center'> <h1> Cadastre </h1> <form> <div className='row g-2'> <div className='form-floating'> <input onChange={(e) => setName(e.target.value)} type='text' className='form-control' id='floatingInput' placeholder='Your name'/> </div> </div> <div className='col-md'> <div className='form-floating> <input onChange={(e) => setDate(e.target.value)} type='date' className='form-control' id='floatingInput' placeholder='Date'/> <label htmlfor='floatingInput> Date </label> </div> </div> </form> </div> </div> </div> }

Código que devuelve la lista de valores en la tabla:

 { props.arrayEpis.map((epi) => { return <tr key={epi.id} className='text-center'> <td> {epi.name} </td> <td> {epi.date} </td> }) }
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!