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

256
Vistas
Javascript. Get start of local day timestamp based on local day string

In Javascript (NodeJs),

I receive a local date string (ex: "Wed 15 December") and I need to get the UTC timestamp of the start and end of this local day.

My webserver time is UTC.

For example, if the timezone is UTC+1, passing "Wed 15 December", I should get 1639522800000 timestamp for the day start time, and 1639609199000 for the day end time.

I haven't yet found any way to do this. I see people using momentjs or other libraries but it is not very clear.

I also need to get the start and end UTC timestamps of other moments, such as the start/end of the local month.

Thank you

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