Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

257
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda