         return "Boundary-\(NSUUID().UUIDString)"
     }
     
-    func ocmDateFormatParser(OCMDateString dateString: String) -> NSDate {
+    func ocmDateFormatParser(OCMDateString dateString: String) throws -> 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 {
+        guard let formattedDate = dateFormatter.dateFromString(cleanedUpdateDate) else {
+            throw DataManagerError.InvalidDateFormat
+        }
+        return formattedDate
+    }
+    
+    func ocmCommentDateFormatParser(OCMDateString dateString: String) throws -> 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)!
+        guard let formattedDate = dateFormatter.dateFromString(cleanedUpdateDate) else {
+            throw DataManagerError.InvalidDateFormat
+        }
+        return formattedDate
     }
     
     

        
    }
    
    lazy var mainMoc: NSManagedObjectContext = { [unowned self] in
        let moc = NSManagedObjectContext(concurrencyType: NSManagedObjectContextConcurrencyType.MainQueueConcurrencyType)
        moc.parentContext = self.managedObjectContext

                                    }
                                    
                                    if let chargerDataLastUpdateTime = element["DateLastStatusUpdate"] as? String {
                                        do {
                                        let date = try self.ocmDateFormatParser(OCMDateString: chargerDataLastUpdateTime)
                                        chargerPrimary.chargerDataLastUpdate = date.timeIntervalSinceReferenceDate
                                        } catch DataManagerError.InvalidDateFormat {
                                            
                                        } catch {
                                            
                                        }
                                    }
                                    
                                    // Media
