I really like Foundation's Date.FormatStyle API for formatting dates, and would like to know if they can be configured using an nsdateformatter.com-style format text (like back in the DateFormatter days).
I can see the appeal of the new API, but let's say our team uses a number of format texts to be aligned between multiple platforms. Can I just pass y-MM-dd to initialize a Date.FormatStyle?
I had a similar case recently and my only solution was to format individual components and concatenate, something like: "\(date.format(yearFormat))-\(date.format(monthFormat))-\(date.format(dayFormat))"
I looked into the implementation a bit, and it turns out that VerbatimFormatStyle internally uses a formatPattern in the style I'm looking for, but doesn't expose it, probably for good reason.