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

167
Vistas
Convert 'Jul' to 'July' with moment.js

I have this response Wed Jul 20 2022 00:00:00 GMT+0300 (Ora de vară a Europei de Est) and I need to convert Jul to July. Is any chance to do it with moment.js? If not, maybe simple way to convert it with vanilla JS.

about 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

This

moment(new Date("Wed Jul 20 2022 00:00:00 GMT+0300")).format('MMMM');

will return 'July';

You can find more there : https://momentjs.com/

about 4 years ago · Santiago Trujillo Denunciar

0

JS Date objects now natively support locale methods for this sort of thing, which has the benefit of working for the whole world (which most regex-based or string-substitution based strategies for this type of problem will not):

let d = new Date("Wed Jul 20 2022 00:00:00 GMT+0300")

console.log(d.toLocaleString('default', { month: 'long' }))

about 4 years ago · Santiago Trujillo Denunciar

0

You can get this using the format method of moment

  • Using MMMM you can get July

Check this out click here

moment().format('MMMM Do YYYY, h:mm:ss a');
about 4 years ago · Santiago Trujillo 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