I am trying to format a PHP date to be of the following format:
Wednesday 3rd November 2021 at 11:01am
My code is below:
$date = new DateTime($dateOfChange);
$date = $date->format('l jS F Y "at" g:ia');
I have tried:
$date = $date->format('l jS F Y "at" g:ia'); // displays: "am01"
$date = $date->format('l jS F Y at g:ia'); // displays: am01
I can't see a relevant section in the documentation (https://www.php.net/manual/en/datetime.format.php)