malcommac / SwiftDate

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
MIT License
7.61k stars 767 forks source link

add toString support for dateTime with differing date and time styles #753

Closed cowgp closed 3 years ago

cowgp commented 3 years ago

I'm in the middle of finally upgrading from 4.X and could not find any solution for doing mixed styles for date and time. It's currently time-only, date-only, or dateTime which applies the same short/medium/long/full to both... my codebase from 4.X days has numerous places where we do .long for data and .short for time.

Seem like this should be there, but I don't see it. Feel free to redirect me to the proper method if I'm missing it.