• Here’s the code that’s currently returning my time/date stamp:

    get_the_time(__(‘F jS, Y’,’k2_domain’))

    What I want to add is the actual time (g:i a), with an M-dash in between, so that the final product reads like this:

    September 1st, 2006 &mdash 9:36 pm

    I’m just not sure how to stick the m-dash in there, and all my previous attempts have produced errors.

    Thanks in advance,

    Mark

Viewing 1 replies (of 1 total)
  • AFAIK: You can’t use HTML entities as part of the format parameter, but you can do this:

    get_the_time('F jS, Y - g:i a');

Viewing 1 replies (of 1 total)

The topic ‘Time/Date formatting help’ is closed to new replies.