I'm trying to reformat a date, but I'm not having much luck. Here's the code without date_format:
echo sprintf('<h2>Broadcast: %s</h2>', $broadcast['broadcast_datetime']);
The result on the page is "Broadcast: 18/05/2022 12:00 pm" I want to put this in to US date/time format, so I did the following:
echo sprintf('<h2>Broadcast: %s</h2>', date_format($broadcast['broadcast_datetime'], 'm/d/YYYY h:i'));
The result is: "Broadcast: " (the date and time don't show at all)
What am I doing wrong?