     {
         let time: NSTimeInterval = self.timeIntervalSinceDate(anotherDate)
         return Int(abs(time / 60 / 60 / 24))
-        
-        /*var fromDate: NSDate? = nil
-        var toDate: NSDate? = nil
-        var duration: NSTimeInterval = 0
-        
-        let gregorian = NSCalendar.init(identifier: NSCalendarIdentifierGregorian)
-        gregorian!.rangeOfUnit(.CalendarUnitDay, startDate: &fromDate, interval: &duration, forDate: self)
-        gregorian!.rangeOfUnit(.CalendarUnitDay, startDate: &toDate, interval: &duration, forDate: anotherDate)
-        
-        let components = gregorian!.components(.CalendarUnitDay, fromDate: fromDate!, toDate: toDate!, options: .WrapComponents)
-        
-        return abs(components.day)*/
     }
     
     /**

    */
    public func month() -> NSDate
    {
        let gregorian = NSCalendar(identifier: NSCalendarIdentifierGregorian)
        let comp = gregorian!.components(.CalendarUnitYear | .CalendarUnitMonth, fromDate: self)
        
        comp.setValue(1, forComponent: .CalendarUnitDay)
        let date = gregorian?.dateFromComponents(comp)
        return date!
    }
    

    */
    public func isSameDay(anotherDate: NSDate) -> Bool
    {
        let calendar = NSCalendar.autoupdatingCurrentCalendar()
        let components1 = calendar.components(.CalendarUnitYear | .CalendarUnitMonth | .CalendarUnitDay, fromDate: self)
        let components2 = calendar.components(.CalendarUnitYear | .CalendarUnitMonth | .CalendarUnitDay, fromDate: anotherDate)
        
