if let date:Date = formatter.date(from: dateString) {
formatter.dateFormat = "dd MMM yyyy hh:mm a
print("Formatted Date:\(formatter.string(from: date))")
return formatter.string(from: date)
}
Will the Date Format "dd MMM yyyy hh: mm a" will display time-based on the Device Settings?
I can see the date and time in the correct format as chosen in the Settings (i,e) 24Hr when I turned on a 24Hr switch in the Settings and 12Hr format when I turned off 24Hr switch.
But my app users say, he is unable to see time in 24Hrs even he turned on the 24Hr switch in the settings.
Any suggestions and Inputs are welcome. Thanks