I want to make the Label display the date of today. The function itself from the date it wrote. Can't figure out how to embed in a UIcontroller?
@IBOutlet weak var CurrentDateLabel: UILabel!//Мой Label func CurrentDate(){ let date = Date() let MonthFormat = DateFormatter() MonthFormat.dateFormat = "MMMM" let Month = MonthFormat.string(from: date) let DayYearFormat = DateFormatter() DayYearFormat.dateFormat = "dd/yyyy" let DayYear = DayYearFormat.string(from: date) let DateArgument = (Month + "\n" + DayYear) CurrentDateLabel.text = DateArgument } No error, but nothing output