         
     }
     
+    enum DataManagerError: ErrorType {
+        case InvalidDateFormat
+    }
+    
     lazy var mainMoc: NSManagedObjectContext = { [unowned self] in
         let moc = NSManagedObjectContext(concurrencyType: NSManagedObjectContextConcurrencyType.MainQueueConcurrencyType)
         moc.parentContext = self.managedObjectContext

        return "Boundary-\(NSUUID().UUIDString)"
    }
    
    func ocmDateFormatParser(OCMDateString dateString: String) -> NSDate {
        //Format date string from OCM to NSDate
        let dateFormatter = NSDateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
        let cleanedUpdateDate = dateString.stringByReplacingOccurrencesOfString("Z", withString: "")
        return dateFormatter.dateFromString(cleanedUpdateDate)!
    }
    
    func ocmCommentDateFormatParser(OCMDateString dateString: String) -> NSDate {
        //Format comment date string from OCM to NSDate
        let dateFormatter = NSDateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SS"
        let cleanedUpdateDate = dateString.stringByReplacingOccurrencesOfString("Z", withString: "")
        return dateFormatter.dateFromString(cleanedUpdateDate)!
    }
    
    

                                                    }
                                                    
                                                    if let commentDate = commentElement["DateCreated"] as? String {
                                                        do {
                                                        let date = try self.ocmCommentDateFormatParser(OCMDateString: commentDate)
                                                            comment.commentDate = date.timeIntervalSinceReferenceDate
                                                        } catch DataManagerError.InvalidDateFormat {
                                                            
                                                        } catch {
                                                            
                                                        }
                                                        
                                                    }
                                                    
