Swift: Converting string to date – Ios swift
I have a date as String but I want to convert it to Date. The date in string looks like this - "2022-09-09T07:00:00.0000000". Code to convert it to Date: public static func dateStringToDate(dateString: String) -> Date? { let dateFormatter =…