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

188
Views
Cómo eliminar la hora de enlaces como este: "2022-06-28T00:00:00+03:00&end=2022-06-30T23:59:59+03:00"

tengo un problema en laravel con enlaces en un script fullcalednar. Necesito que los enlaces sean solo con fecha: 2022-06-28 no con T00:00:00+03:00. hago esto pero no funciona alguna idea?

 // timeZoneOffset is in minutes function buildIsoString(marker, timeZoneOffset, stripZeroTime) { if (stripZeroTime === void 0) { stripZeroTime = false; } var s = marker.toISOString(); s = s.replace('.000', ''); if (stripZeroTime) { s = s.replace('T00:00:00Z', ''); } if (s.length > 10) { // time part wasn't stripped, can add timezone info if (timeZoneOffset == null) { s = s.replace('Z', ''); } else if (timeZoneOffset !== 0) { s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true)); } // otherwise, its UTC-0 and we want to keep the Z } return s; }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No entiendo completamente el problema. Entonces, por favor tengan paciencia conmigo.

Si desea eliminar las horas, minutos, segundos y milisegundos de una cadena ISO (de Date.toISOString() ), simplemente puede hacer lo siguiente:

  • Opción 1: isoString = isoString.slice(0, 10);
  • Opción 2: isoString = isoString.replace(/T.*$/, "");

No estoy seguro de que esto responda a tu pregunta. Necesitaría saber más sobre cómo y dónde se llama a la función buildIsoString y qué hace formatTimeZoneOffset .

Espero que esto ayude.

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!