angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 729 forks source link

getDate #425

Open mike-diamond opened 8 years ago

mike-diamond commented 8 years ago

I can't get chosen date by $scope.getDate = function() { return uiCalendarConfig.calendars['myCalendar1'].fullCalendar('getDate'); } It returns me wrong date after I switch to +2 or -2 months. How can I get the date/month I choose in calendar?

rizoom commented 8 years ago

I guess you should provide the full scenario if you want to get some inputs on what is going wrong here.

Otherwise, to get the current date of the calendar I personnally use the viewRender as described in the Readme of ui-calendar: watching-the-displayed-date-range-of-the-calendar