i want to get this type of formate -> April 20, 2018 at 9:02:00 PM UTC+5:30 for firestore timestamp. i already try this code but do not get proper formate as above.
let date = Date()
let formatter = DateFormatter()
formatter.dateFormat = "MMMM d yyyy hh:mm:ss a Z"
formatter.timeZone = NSTimeZone(name: "IST") as TimeZone?
let result = formatter.string(from: date)
print(result)
already use this formatter formatter.dateFormat = "MMMM d yyyy'T'hh:mm:ss a Z"
Thanks



'at'in your format.timeStampin unix format like this1524476327and parse it at client side for UI purpose.dateFormatthere are many formats so whenever requirement change you will ask a new question. Why not just google for that particular format?