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

212
Views
Is there a way to change the datetime format in fullcalender version 5.9.0 on eventdrop

The ajax request is sending date and time in the following format

id  "41"
start   "Mon+Oct+04+2021+17:10:00+GMT+0300+(East+Africa+Time)+17:10:0"
end "Mon+Oct+04+2021+18:40:00+GMT+0300+(East+Africa+Time)+18:40:0"

Is there a way to change it to meet the following format

 id "41"
    start   "2021-10-04 17:10:0"
    end "202110-04 18:40:0"

My code at eventdrop look like this

 eventDrop: function(arg) {
            var start = arg.event.start+' '+arg.event.start.getHours()+':'+arg.event.start.getMinutes()+':'+arg.event.start.getSeconds();
            if (arg.event.end == null) {
                end = start;
            } else {
                var end = arg.event.end+' '+arg.event.end.getHours()+':'+arg.event.end.getMinutes()+':'+arg.event.end.getSeconds();
            }
            $.ajax({
              url: 'process/edit.php',
              type:"POST",
              data:{id:arg.event.id, start:start, end:end},
            });
        }

Any suggestion please, Note this is Fullcalendar version 5.9.0

about 4 years ago · Juan Pablo Isaza
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!