Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
Previews Locale - not working
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.