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

206
Vistas
How to fill in the array from today's date to the last day of the month?

The following computational property returns an array of days of each month:

getDays(){
  return new Array(this.currentMonth.clone().daysInMonth())
    .fill(null)
    .map((x, i) => this.currentMonth
      .clone()
      .startOf('month')
      .add(i, 'days')
    );
}

But how can I put days from the current date in the active month, but at the same time fill in the next month completely from the first day?

That's what I want:

current month - March

days of March - [today(March 14) ... last day of month]

Next month - April

days of March - [first day of month ... last day of month]

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