Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

238
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda