Need to convert calendar event date to 12 hour

Permalink
Hi

I have a site with core calendar functionality.
I am using the following which renders the date/time in 24hr clock for an event:

echo $formatter->getOccurrenceDateString($occurrence);


But I need it to render date and time in 12 hour clock. How can I convert it to 12 hour please?

Thanks
Dave

madesimplemedia
View Replies: