In a list, I want to show dates fetched form the database. If I use:
#Date(timeStamp: appointment.appointmentDate,localizedFormat: "E, dd-MM-yyyy")
I would expect: Wed, 30/12/2020 BUT I get Wed, 12/30/2020 which I find very strange since I specifically ask for dd-MM
I then tried:
#Date(timeStamp: appointment.appointmentDate,fixedFormat: "E, dd-MM-yyyy")
with works okay and provides me with: Wed, 30/12/2020
However, I'm still not happy...
- I want to have it presented with - instead of / : Wed, 30-12-2020
and
- Since my app will be localized, I would like to have control on the way the day is shown: Wed (Eng), Mer(French), Woe (Dutch) so how do I set which locale should be used in Leaf? (I know how to do it in Vapor but I'd rather leave it up to Leaf if it is possible.)