s yyyy-MM-dd HH:mm:ss Short Date Local

The solution for “s yyyy-MM-dd HH:mm:ss Short Date Local” can be found here. The following code will assist you in solving the problem.

func DateFromWebtoApp(_ date: String) -> String {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = “yyyy-MM-dd’T’HH:mm:ss.SSS’Z'”
let date = dateFormatter.date(from: date)
dateFormatter.dateFormat = “MM-dd-yyyy”
return dateFormatter.string(from: date!)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts