Answer the question
In order to leave comments, you need to log in
How to determine the active month and today's date in Angular.UI Calendar?
I'm using angular-ui.github.io/ui-calendar
But I can't get what I need with the getDate and getToday methods.
1. getDate returns returns the date 2016-06-25T09:40:45.802Z but in quotation marks, it cannot be filtered through | date
2. getToday does not return at all, you have to use new Date, but I would like to associate the functions with the calendar as much as possible.
$scope.getDate = function() {
return uiCalendarConfig.calendars['myCalendar1'].fullCalendar('getDate');
}
$scope.getToday = function() {
return uiCalendarConfig.calendars['myCalendar1'].fullCalendar('today');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question