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

147
Vistas
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 Respuestas
Responde la pregunta

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 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