Need to convert calendar event date to 12 hour
I have a site with core calendar functionality.
I am using the following which renders the date/time in 24hr clock for an event:
But I need it to render date and time in 12 hour clock. How can I convert it to 12 hour please?