                                     }
                                     
                                     if let chargerDataLastUpdateTime = element["DateLastStatusUpdate"] as? String {
-                                        //Format date string to NSDate
-                                        let dateFormatter = NSDateFormatter()
-                                        dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
-                                        let cleanedUpdateDate = chargerDataLastUpdateTime.stringByReplacingOccurrencesOfString("Z", withString: "")
-                                        if let date = dateFormatter.dateFromString(cleanedUpdateDate) {
-                                            
-                                            chargerPrimary.chargerDataLastUpdate = date.timeIntervalSinceReferenceDate
-                                        }
-                                        
+                                        let date = self.ocmDateFormatParser(OCMDateString: chargerDataLastUpdateTime)
+                                        chargerPrimary.chargerDataLastUpdate = date.timeIntervalSinceReferenceDate
+
                                     }
                                     
                                     // Media

    
    func generateBoundaryString() -> String {
        return "Boundary-\(NSUUID().UUIDString)"
    }
    
    

                                                    
                                                    if let commentUsername = commentElement["UserName"] as? String {
                                                        comment.username = commentUsername
                                                    }
                                                    
                                                    if let commentDate = commentElement["DateCreated"] as? String {
                                                        let date = self.ocmCommentDateFormatParser(OCMDateString: commentDate)
                                                        comment.commentDate = date.timeIntervalSinceReferenceDate
                                                        
                                                    }
                                                    
                                                    comment.chargerSecondary = chargerDetails
