In a database the date is stored like this 20171127
which is todays date. Unfortunately I cannot change the way the date is stored in the database.
Can I convert this string to a nice format? The excepted output is 27. November 2017
.
I already looked at strtotime and strftime but there is no way to parse a string like I got.