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

408
Vistas
How to format this date so it's more readable?

I have date in this format:

2022-06-28T17:09:00.922108+01:00

I want to covert it into a more readable format. I'm using javascript/react and I tried moment-js but it gives me "invalid format".

What are my other options of turning it into a normal date?

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

0

You can use this to format date:

const format = "DD-MM-YYYY"
moment(date).format(format)

or

moment().format('MMMM Do YYYY, h:mm:ss a');  // June 28th 2022, 9:49:49 pm

for more detail refer: https://momentjs.com/

about 4 years ago · Juan Pablo Isaza Denunciar

0

If you are using moment.js you can convert this to any format you like using this doc

Sample code

moment('2022-06-28T17:09:00.922108+01:00').format("DD-MM-YYYY"); //28-06-2022

Kindly go though the moment.js features and documents. There is a lot more you can do with this like showing time, day of the week etc

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