 
     while prevMonth.valueOf() < nextMonth
       html.push '<tr>' if prevMonth.getDay() == @weekStart
-
+        
       clsName = '';
       if prevMonth.getMonth() < month
-        clsName += ' old'
+        clsName += ' old'   
       else if prevMonth.getMonth() > month
         clsName += ' new'
-
-      if prevMonth.valueOf() == today
-        clsName += ' today'
-
+      
       if prevMonth.valueOf() == currentDate
         clsName += ' active'
-
+      
       html.push "<td class='day#{clsName}'>#{prevMonth.getDate()}</td>"
       html.push '</tr>' if prevMonth.getDay() == @weekEnd
-
+        
       prevMonth.setDate(prevMonth.getDate()+1)
+    
 
     @picker.find('.datepicker-days tbody').empty().append(html.join(''))
     currentYear = date.getFullYear()
-
+    
     months = @picker.find('.datepicker-months').find('th:eq(1)').text(year).end().find('span').removeClass('active')
     months.eq(date.getMonth()).addClass('active') if currentYear == year
 

          when 'yyyy'
            y = val
      new Date(y, m, d)

  formatDate: (date, format) ->
    return "" if date == null
    val = {

  ]
  isLeapYear: (year) ->
    (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
  
  getDaysInMonth: (year, month) ->
    [31, (if DateTools.isLeapYear(year) then 29 else 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]

