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

237
Visualizações
Moment: not able to get the format

I have an api which returns the date which is human readable but not getting the data after parsing through moment;

The time which I am getting from api is

{"time": "Jun 27 2022 03:40:00:000PM"}

what I have tried is

let data = moment("Jun 27 2022 03:40:00:000PM").format()
also tried this:
let data = moment("Jun 27 2022 03:40:00:000PM").format("YYYY-MM-DD") 

But not getting time. Every time I get the error

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release.

Can someone guide me how to tackle this types of dates.

Any help or suggestion is really appreciated. Thanks in advance for the interaction👏

about 4 years ago · Juan Pablo Isaza
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