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

133
Visualizações
JAVASCRIPT reading value from excel sheet displas a diffrent value

currently, I am working on a function that is needed to import all the excel data into json objects on a website, therefore I have used the XLSX.utils.sheet_to_json utility on JS which brings me all the data to JSON on the web page. but few data are invalid which are not the same as on the excel sheet specifically date formats.

on the read method what I was following is below

  var workbook = XLSX.read(data, {
        type: "binary", 
  });

do I need to add anything else to get the date data correctly?

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

0

there are a few options you have to mention in order to get the data correctly on date format

let readData = XLSX.read(data, {
  type: "binary",
  cellDates: true,
  dateNF: "mm/dd/yyyy;@",
});


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