Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda