Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
Format the date right into each table date JavaScript/html

so i have tried many things but i stuck at the point...

I want to format the date the jquery.datepicker has (right in the picture) transfers the same format to the in HTML..

When I click the button to add the data in the table, the format is as you can see (left) in the pic.

    var newRow = table.insertRow(table.length),
    cell2 = newRow.insertCell(1), // Date
    date = document.getElementById("date").value,

more code.... but not important

Thank you guys! 😊

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You will have to change the locale :

  const formatted = date.toLocaleString('fr-FR') // or 'de-DE'

Then insert formatted in your table

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda