将IETF格式更改为unix时间戳

时间:2013-06-27 06:55:26

标签: fullcalendar

您好有办法在fullcalendar中更改以下snipp的时间格式吗?

select: function(startDate, endDate) {

        $.fancybox({
        \'width\': \'40%\',
        \'height\': \'40%\',
        \'autoScale\': true,
        \'transitionIn\': \'fade\',
        \'transitionOut\': \'fade\',
        \'type\': \'iframe\',
        \'href\': \'test.php/?start=\'+startDate+\'&end=\'+endDate,
            });

calendar.fullCalendar(\'unselect\');
        }

我想要开始& EndDate是一个unix时间戳。

谢谢

1 个答案:

答案 0 :(得分:0)

可以通过在FullCalendar中发送分离的Ajax请求来覆盖“start”和“end”参数来实现。

看一下这条相似主题:add custom params to fullcalendar request