Thank you for your replies, I think I found the answer myself. The issue seems to be that I am formatting from the components. If I use string(from: to:), then the output is as I would expect it!
let formatter = DateComponentsFormatter()
formatter.unitsStyle = .full
formatter.allowedUnits = [.year, .month, .weekOfMonth, .day]
let result = formatter.string(from: startDate, to: endDate)
Topic:
App & System Services
SubTopic:
General
Tags: