从fullcalendar jquery获取选定日期

我从这里将日历添加到我的asp.net mvc 2应用程序中。 我想选择我要参加活动的选定日期。 我怎样才能获得选定的日期? 另外,我想将此日期和相应的事件保存到数据库中。 怎么办呢? 我是jequery的新手。 请帮忙!

设置插件时使用此代码

$('#calendar').fullCalendar({ selectable: true, select: function(start, end, jsEvent, view) { // start contains the date you have selected // end contains the end date. // Caution: the end date is exclusive (new since v2). var allDay = !start.hasTime() && !end.hasTime(); alert(["Event Start date: " + moment(start).format(), "Event End date: " + moment(end).format(), "AllDay: " + allDay].join("\n")); } }); 
      
 $('#calendar').fullCalendar({ dayClick: function(date, jsEvent, view) { alert('Clicked on: ' + date.format()); alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY); alert('Current view: ' + view.name); // change the day's background color just for fun $(this).css('background-color', 'red'); } });