I am trying to convert firebase timestamp into NSDate but continuously not able to do that. My code is like : -
if let serverTimestamp = document.data()[kSessionTimeStamp] as? TimeInterval{
debugPrint(value)
}
it is not printing it but when I parse as [String:Any] then it successfully parsed it. but dictionary does not contain any timestamp. I am using firestore.