I have a date in the future which is always 30 days ahead of the current date. It\'s stored in a Date object. I worked this out using:
var currentDate = new
Simply add this code in Fullcalendar:
select: function (start, end, jsEvent, view) { if (start.isBefore(moment())) { $('#calendar').fullCalendar('unselect'); return false; } else { var currentDate = moment(start).format('YYYY/MM/DD')); alert(currentDate); } }
Simple and fast. Enjoy!