You know what?
There was some sort of hidden underscore.
I deleted the space between $dateFormatted = strftime() and then I got no error msg. Then I put spaces between the = again, and it worked.
So now it kind of works. I only getthe dat 31.12.1969.......
Which is a bit off.
The code is the same and I have tried with
//$today = $mday.".".$month.".".$year;
So that I use the getdate() format, I've tried:
$dateFormatted = strftime("%d.%m.%Y",$today);
and I have tried
.... AHA!
I found the solution. I have to use:
$dateFormatted = strftime("%d.%m.%Y",strftime($today[0]));
NOW it works. Thanks for the help 😃