Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
Filtro de datos con rango de fechas del calendario

Estoy usando el calendario PickMeUp para filtrar la lista de eventos según la selección de fecha del usuario.

Aquí está el violín: https://jsfiddle.net/Lkpmczte/1/

No tengo idea de lo que estoy haciendo mal. Aquí hay un extracto:

 let startDay; let endDay; let result; pickmeup(element); element.addEventListener("pickmeup-change", function(e) { startDay = e.detail.formatted_date[0]; endDay = e.detail.formatted_date[1]; result = data.filter(function(obj) { return obj.date >= startDay && obj.date <= endDay; }); getDay(); }); let getDay = () => { return startDay === endDay ? console.log(startDay) : console.log(`${startDay} - ${endDay}`); }; btn.addEventListener("click", () => { console.log(result); });

Pero devuelve una matriz vacía ...

Agradecería cualquier tipo de ayuda :) ¡Gracias de antemano!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resuelto. Tuve un error tipográfico en el formato de fecha. Usé guiones cuando debería haber usado barras.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!