In my database I have 10-01-2021 (d/m/Y)
I want to display this on the website as (d F Y) "10 January 2021. However it shows as 1 October 2021
How do I tell the code that the day and the month are not in US order of month/day but actually as day/month?
I have tried using $projectCreated = DateTime::createFromFormat('d/M/Y', $projectCreated); but this doesn't echo anything.
$projectCreated = date_create($projectCreated);
$projectCreated = date_format($projectCreated,"d F Y");