Hy i was wondering how can i convert FullCalendar start and end date so i can insert it in database, this is the output given by fullcalendar js:
end Thu Aug 16 2012 00:00:00 GMT 0300
start Wed Aug 08 2012 00:00:00 GMT 0300
it can be done either by javascript or php, and this is what i am sending thouth json:
title=test&start=Wed Aug 08 2012 00:00:00 GMT+0300&end=Thu Aug 16
2012 00:00:00 GMT+0300&uid=7
> $.ajax({
> cache: false,
> type: 'POST',
> url: siteURL + 'ajax/add_holiday',
> data: 'title=' + title + '&start=' + start +'&end=' + end + '&uid=' + '<?php echo $_SESSION['user']->uid; ?>',
> success: function(data) {
>
> }
> });
Use FullCalendar’s built-in function