I am using full calendar and using the date from the eventclick
calEvent._start._i returns: 2015-12-01 09:00:00
and I want to compare it to another date although it is this format
2015-12-01
I have used
var date = new Date(calendarDate);
date.setHours(0,0,0,0);
which returns an invalid date format
I have also used
var calDate = _longDateFormat(calendarDate, "dd-mm-yy");
which errored on the javascript
Nothing seems to work, including dateFormat.
Ideas?