currentTime() -> String {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss" // Set date format
dateFormatter.timeZone = TimeZone(secondsFromGMT: 0) // Set timezone to UTC
let currentTime = "CC;" + dateFormatter.string(from: Date()) + "Z"
}
are they 100% same? Thanks advance
Just compile and check result
good idea thanks
Обсуждают сегодня