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

112
Vistas
How do I parse with both Day of Week and Month in date-fns?

I have a string Mon Mar 28 00:00:00 EDT 2022 which I want to parse but it's not working

dateFns.parse(theDate, "eee MMM d HH:mm:ss X yyyy", null)

Getting

RangeError: The format string mustn't contain eee and MMM at the same time

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Well, you can try this:

dateFns.parse(theDate, "EEE MMM d HH:mm:ss X yyyy", new Date())

but this still wrong, the "EDT" string cause error, I've tried with "-04" instead, it works. So maybe you should try some way convert the "EDT, UTC,.." string to timezone format "-04" "+07"

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