Answers for "change current date to string with date format in swift5"

2

change from Date to String swift 5

let formatter = DateFormatter()
formatter.dateFormat = "HH:mm E, d MMM y"
print(formatter.string(from: today))
Posted by: Guest on May-31-2021

Code answers related to "change current date to string with date format in swift5"

Code answers related to "Swift"

Browse Popular Code Answers by Language