I want to display the long version of a date BUT WITHOUT the year
With:
let dateFormatter = DateFormatter()
dateFormatter.dateStyle = .full
dateFormatter.timeStyle = .none
dateFormatter.doesRelativeDateFormatting = true
dateFormatter.locale = Calendar.current.locale
if let inPast = Calendar.current.date(byAdding: .day, value: -30, to: Date()) {
let text = dateFormatter.string(from: inPast)
}
The output is "Wednesday, April 15, 2020" and I want to have "Wednesday, April 15"