Skip to content

From Full Calendar - Get date in alert using jquery

Kavitha M

Asked Jun 30, 2015, 11:50 PM EDT1 answer
Share
LinkedInX
Hi all,
 
I'm using FullCalendar plugin for jQuery in my project. In fullCalendar week view, I can see a row showing the date in following format:-

Sunday 9/6, Monday 9/7, Tuesday 9/8 so on...

Now i have used only header format in calendar for timesheet project. I want to get dates 9/6,9/7 in alert when move to next/previous week. It is possible to get dates seperately for current week
 
Thanks 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi all,
    I done this using the following script : 
     
    JavaScript
    events: function (start, end, callback) {
                            //request the back-end and call the callback when the ajax is done
                            $.get('events/get', function(result){
                                callback(result);
                            });
                            var date = new Date();
                            var Sun = $('#calendar').find(".fc-sun").text();  alert(Sun);
    }
     
    0