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

219
Views
Formated date in javascript and firebase and reactJS ISO 8601

i would like to format my date coming from firebase to 'dd/MM/yyyy' format using javascript. The date in firebase database, is as timestamp field. I need show on the fron end the date formatted as ISO 8601

Code for store the values:

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>
}

Code that returns the list of values in table:

{
    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!