how to separate the date from the time using fullcalendar ,?

0

Someone can help me with this here: I would like to separate the Date of Time at the time of registering and show in a Modal using FullCalendar, same as the print I found on the internet, I tried doing so: but I could not ... right now Thank you.

eventClick: function(event) {

    $('#visualizar #id').text(event.id);
    $('#visualizar #id').val(event.id);
    $('#visualizar #title').text(event.title);
    $('#visualizar #title').val(event.title);
    $('#visualizar #color').val(event.color);
    $('#visualizar #description').val(event.description);
    $('#visualizar #description').text(event.description);
    $('#visualizar #start').text(event.start.format('DD/MM/YYYY'));
    $('#visualizar #start').val(event.start.format('DD/MM/YYYY'));
    $('#visualizar #starttime').val(event.start.format('HH:mm:ss'));
    $('#visualizar #starttime').text(event.start.format('HH:mm:ss'));
    $('#visualizar #endtime').text(event.end.format('HH:mm:ss'));
    $('#visualizar #endtime').val(event.end.format('HH:mm:ss'));
    $('#visualizar').modal('show');
    return false;
},

selectable: true,
selectHelper: true,
select: function(start, start, end){
    $('#cadastrar #start').val(moment(start).format('DD/MM/YYYY'));
    $('#cadastrar #starttime').val(moment(start).format('HH:mm:ss'));
    $('#cadastrar #endtime').val(moment(end).format('HH:mm:ss'));
    $('#cadastrar').modal('show');                      
},
events: [
    <?php
    while($row_events = mysqli_fetch_array($resultado_events)){
    ?>
    {
    id: '<?php echo $row_events['id']; ?>',
    title: '<?php echo $row_events['title']; ?>',
    color: '<?php echo $row_events['color']; ?>',
    description: '<?php echo $row_events['description']; ?>',
    start: '<?php echo $row_events['start']; ?>',
    start: '<?php echo $row_events['starttime']; ?>',
    end: '<?php echo $row_events['endtime']; ?>',
},<?php
}
?>

]

    
asked by anonymous 02.07.2018 / 01:10

0 answers