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

146
Visualizações
Selected text date string - add to calendar option

Bit of a wide question so feel free to ask for elaboration if needed but after some Googling I couldn't find an answer.

More curious than an actual need.

Is there a way of adding a tag, attribute (such as type=date) or JS (such as converting to a date object) to a text date string, like "Tuesday 3rd May, 2pm" that allows the user to select it and add it to their calendar?

Much like I can select an address text string and Google gives me the option to find that location on Google Maps.

Not looking for a concrete answer necessarily just some direction so I can have a play around.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can play around with this:

<input type="date" />

<script>
    const input = document.querySelector('input');

    input.addEventListener('change', ({ target }) => {
        const date = new Date(target.value).toDateString();
        console.log(date);
    });
</script>

about 4 years ago · Juan Pablo Isaza Relatório
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