Title: Time/Date formatting help
Last modified: August 18, 2016

---

# Time/Date formatting help

 *  [WTF](https://wordpress.org/support/users/wtf/)
 * (@wtf)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/timedate-formatting-help/)
 * 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)

 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/timedate-formatting-help/#post-445278)
 * 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.

## Tags

 * [formatting](https://wordpress.org/support/topic-tag/formatting/)
 * [time](https://wordpress.org/support/topic-tag/time/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/timedate-formatting-help/#post-445278)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
