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

183
Vistas
Time and Date picker type='datetime-local'

I have two text-field html elements to pick start and end date/time respectively. How to make start date/time less than end date/time?

<v-text-field
  id="setTime"
  outlined
  type="datetime-local"
  label="Start time"
  v-model="plan.start"
>
</v-text-field>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

first, disable end date/time conditional if there is no start date/time it must be disabled. after that when user select start date/time then on validation check if end date/time is lessThan start date/time return error, also, you can disable days lessThan start day/time in end date/time field (read your date/time picker library document)

you can use yup for validation date-time or do it manually:

if your date/time is in epoch format it's like this

const schema = yup.object({
  fromDate: yup.number().required(),
  toDate: yup.number().moreThan(yup.ref("fromDate")).required(),
});

I hope it help you

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