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

131
Views
Fullcalendar substring date returns Uncaught TypeError: info.event.end.substring is not a function

I have a fullcalendar in which i'm using a jquery timepicker. On event click i need to take the start properties (example: "Wed May 04 2022 11:30:00 GMT+0200 (Ora legale dell’Europa centrale)") but using the substring to only have HH:MM. I tried doing: "var x= info.event.end.substring(16, 21);" but when i click an event this error occure: "Uncaught TypeError: info.event.end.substring is not a function" How can i fix this?

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

0

end is a Date object, and substring only works on String objects. Add .toString() and you'll be able to progress.

var x= info.event.end.toString().substring(16, 21);
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!