Good day! As in the swift, “isolate” the current date and time preferably in the form of a String, well, or Array at worst ...

  • There must be such a function! - Igor Zexyy

1 answer 1

let dateFormatter = DateFormatter() dateFormatter.dateFormat = "YYYY-MM-dd hh:mm:ss" let dateString = dateFormatter.string(from: Date.init()) print(dateString) 
  • Thank! Works! - Igor Zexyy