I have a string with my german date Freitag - 09. September 2022 - 14:00
(Format is: l - d. F Y - H:i
). It need to be displayed in this format on my homepage thats why its in this format.
Now i want to parse this string into a date that i can check if the given date is before todays date (i only want to check day, month and year, so time is unnecessary).
I already tried a lot of things with strtotime
and also DateTime::createFromFormat
but nothing worked for me.
Is there any solution for that?