Title: Adding time to &#8220;Published:&#8221;
Last modified: August 19, 2016

---

# Adding time to “Published:”

 *  [eliasgi](https://wordpress.org/support/users/eliasgi/)
 * (@eliasgi)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/adding-time-to-published/)
 * Hi!
 * So I’m wondering how I add the time when a post is published. I’m a newbie, indeed.
 * `<span class="date"><?php _e('Skrivet den', 'default'); ?> <?php the_time('d 
   F Y') ?></span>`
 * I thought it could be something like (‘d F Y’ , ‘G:i’) but obviously not… hm?
 * Help please!
 * Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 2 months ago](https://wordpress.org/support/topic/adding-time-to-published/#post-995838)
 * `the_time('d F Y, G:I');` works fine.
 *  [siggia](https://wordpress.org/support/users/siggia/)
 * (@siggia)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/adding-time-to-published/#post-996102)
 * Here’s an excellent page with everything to do with [PHP date() Function](http://www.w3schools.com/PHP/func_date_date.asp).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding time to “Published:”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [siggia](https://wordpress.org/support/users/siggia/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/adding-time-to-published/#post-996102)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
