Zmień datę na ciąg Swift 5
let formatter = DateFormatter()
formatter.dateFormat = "HH:mm E, d MMM y"
print(formatter.string(from: today))
Ghaith Alzin
let formatter = DateFormatter()
formatter.dateFormat = "HH:mm E, d MMM y"
print(formatter.string(from: today))
let today = Date()
let formatter1 = DateFormatter()
formatter1.dateStyle = .short
print(formatter1.string(from: today))