Thank you very much for your help.
It is true that formatting the date and then converting it to string prints the right date, however I cannot compare dates anymore if I convert them to strings.
Because in my project I am trying to compare dates and not just integers.
Thank you very much for your time.
But in this case
@AppStorage("date") var date = Date().rawValue, date isn't a Date, it's a Double
So if I try to bound it in a DatePicker it won't work
Thank you very much for your help.
It is true that formatting the date and then converting it to string prints the right date, however I cannot compare dates anymore if I convert them to strings.
Because in my project I am trying to compare dates and not just integers.
Thank you very much for your time.
But in this case
@AppStorage("date") var date = Date().rawValue, date isn't a Date, it's a Double
So if I try to bound it in a DatePicker it won't work