     
     
     
-    public func weekdayForIndex(index: NSInteger) -> String {
+    public class func weekdayForIndex(index: NSInteger) -> String {
         
         assert(index <= 7, "CBDateUtils Error:  Index for day of week is invalid")
         

                
                if showWeekday {
                    var comps = NSCalendar.currentCalendar().components(NSCalendarUnit.WeekdayCalendarUnit, fromDate: self)
                    formattedString = "\(weekdayForIndex(comps.weekday))"
                }
            }
        }

            
            if showWeekday {
                var comps = NSCalendar.currentCalendar().components(NSCalendarUnit.WeekdayCalendarUnit, fromDate: self)
                formattedString = "\(CBDate.weekdayForIndex(comps.weekday)) at \(timeString())"
            }
            else {
                formattedString = "\(dateString()) at \(timeString())"
