change from Date to String swift 5
let formatter = DateFormatter()
formatter.dateFormat = "HH:mm E, d MMM y"
print(formatter.string(from: today))
change from Date to String swift 5
let formatter = DateFormatter()
formatter.dateFormat = "HH:mm E, d MMM y"
print(formatter.string(from: today))
swift + data to string
let str = String(decoding: data, as: UTF8.self)
swift date to string
let today = Date()
let formatter1 = DateFormatter()
formatter1.dateStyle = .short
print(formatter1.string(from: today))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us