             self.body.on 'click', 'div.drm-calendar-event-details button.drm-event-close', self.removeEventDetails
 
         getDaysInMonth: (month, year) ->
+            month = month + 1
             new Date(year, month, 0).getDate()
 
-        getDayOfWeek: (month, year, day) ->
-            day = new Date year, month, day
+        getDayOfWeek: (month, date, year) ->
+            day = new Date year, month, date
             day.getDay()
 
         getWeeksInMonth: (numberDays, dayShift) =>

                        dates.month = nextMonth
                dates

            weekdays = "<table><thead><tr>"
            weekdays += "<th></th>"
            $.each self.days, (key, value) ->
                dates = getDates datesInWeek, key
                weekdays += "<th>#{value}<br>#{self.months[dates.month]} #{dates.date}</th>"
            weekdays += '</tr></thead>'

            week = "<tbody class='drm-week #{weekClass}' data-week='#{weekNumber}'>"

            $.each self.hours, (key, value) ->
                hour = value.name
                week += '<tr>'
                week += "<td><span class='hour'>#{hour}</span></td>"
                $.each self.days, (key, value) ->
                    dates = getDates datesInWeek, key
                    week += "<td class='drm-date' data-month='#{dates.month}' data-date='#{dates.date}' data-year='#{currentYear}' data-day='#{key}' data-hour='#{hour}'></td>"
                week += '</tr>'
            week += '</tbody></table>'

            calendar = $ '<div></div>',
                class: self.calendarInnerClass
                html: weekdays + week
                'data-month': currentMonth
                'data-year': currentYear


            self.addEventForm = self.calendar.find('form.drm-calendar-new-event').hide()
            self.showEventFormButton = self.calendar.find 'button.drm-show-event-form'
            self.calendarViewActiveButton = self.calendar.find(".drm-calendar-view-nav button[data-view=#{self.view}]").addClass 'active'
            self.eventClass = 'drm-events'
            self.classes =
                weekend: 'drm-cal-weekend'
                muted: 'drm-cal-muted'
                holiday: 'drm-cal-holiday'
                today: 'drm-cal-today'
                month: 'drm-month'
                week: 'drm-week'
                date: 'drm-date'

            self.months = [             
                'January'
