code: function (date) {
              var totalMonthDays = dp.getDaysCount(date),
                  firstMonthDay = new Date(date.getFullYear(), date.getMonth(), 1).getDay(),
                  lastMonthDay = new Date(date.getFullYear(), date.getMonth(), totalMonthDays).getDay(),
                  daysFromPevMonth = firstMonthDay - this.d.loc.firstDay,
                  daysFromNextMonth = 6 - lastMonthDay + this.d.loc.firstDay;
  
              daysFromPevMonth = daysFromPevMonth < 0 ? daysFromPevMonth + 7 : daysFromPevMonth;
              daysFromNextMonth = daysFromNextMonth > 6 ? daysFromNextMonth - 7 : daysFromNextMonth;
  
              var startDayIndex = -daysFromPevMonth + 1,
                  m, y,
                  html = '';
  
              for (var i = startDayIndex, max = totalMonthDays + daysFromNextMonth; i <= max; i++) {
                  y = date.getFullYear();
                  m = date.getMonth();
  
                  html += this._getDayHtml(new Date(y, m, i))
              }
  
              return html;
          }
docs: Calculates days number to render. Generates days html and returns it.
  @param {object} date - Date object
  @returns {string}
  @private