Posts

Post not yet marked as solved
2 Replies
I forgot the function: //datetoString func dateToString(_ value: Date) -> String {     let formatter = DateFormatter()     formatter.locale = Locale.current     formatter.dateStyle = .short     return formatter.string(from: value) } Basically I want to verify how the day is presented based on Locale.current MM/DD/YY or DD/MM/YYYY. and show string of Locale.current.