EDIT: Please read carefully I need to support this specific format, I cannot just go and use a hardcoded format using NSDateFormatter
Hi I've got the task to format all dates in our app using settings retrieved from OUR API, the format in this case is supported by strftime functions.
How should I go and use these in swift.
example format for date and time: "date_format": "%d %B %Y" "time_format": "%H:%M"
I found the strtime function but I'm not sure how I should use it or even if I should. I've also only found examples in Objective-C
I hope you can find a better way to satisfy this requirement, but here's the code.
NOTE: I updated the code just a bit for clarity.