Support

Home Forums Event Espresso Premium Change date time 11:55pm to 'Midnight'

Change date time 11:55pm to 'Midnight'

Posted: November 14, 2021 at 11:12 am


joylandbradenton

November 14, 2021 at 11:12 am

When the rendered time says 11:55pm, I want it to display as “Midnight”. What is the best way to do that, other than JavaScript.
screenshot:
https://ibb.co/ZH0K7wr


Tony

  • Support Staff

November 15, 2021 at 5:42 am

Hi there,

I think in this case the safest option will be to use the filter within the function that outputs the above to replace the ’11:55 pm’ string within the output using str_replace().

The HTML about to be output above is passed through a filter HERE.

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso