I am trying to compare some dates in javascript/jquery. But I am getting some error. What I did wrong here?
dayRender: function (date, cell) {
console.log(date.getTime())
}
//here am geting date.getTime is not a function
Here is my function:
$scope.myFunction =function(balance){
$('#fullCalendar').fullCalendar({
defaultDate: balance.defaultDate,
editable: true,
eventLimit: true,
events: [
{
title: balance.title,
start: balance.startDate
}
],
dayRender: function (date, cell) { // This is the callback function to modify a particular date cell.
console.log(date.getDate()); //undefined
}
});
}