Title: Date Format
Last modified: August 21, 2016

---

# Date Format

 *  [Wilson Hobbs](https://wordpress.org/support/users/wilsonhobbs/)
 * (@wilsonhobbs)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/date-format-24/)
 * Does anyone know how to make the date format at the bottom have the year in the
   date?
 * Thanks,
    Wilson

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

 *  [thatiphoneblog](https://wordpress.org/support/users/thatiphoneblog/)
 * (@thatiphoneblog)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/date-format-24/#post-4224639)
 * On top of that, does anybody know how to remove the date completely? (Or alternatively,
   order posts in whichever order we want?)
 * Thanks,
    Jamie
 *  [Christopher Anderton](https://wordpress.org/support/users/anderton/)
 * (@anderton)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/date-format-24/#post-4224641)
 * Line 622 to 637 in `functions.php` is where you find the Date function.
 * To modify the output of the date, find this code (line 628):
 *     ```
       get_the_time( _x( 'M', 'post info month name', 'Serene' ) ),
       				get_the_time( _x( 'd', 'post info day', 'Serene' ) ),
       ```
   
 * The first line here outputs the Month (‘M’). The second the day (‘d’) as you 
   can see.
    Let’s say we want to output the year, month and day together. Example:
   2013-10-18
 * Replace the code above with:
 * `get_the_time( _x( 'Y-m-d', 'post info date name', 'Serene' ) ),`
 * Just above this code, on line 627, we will find this:
 * `printf( '<span class="meta-post-date"><strong>%s.</strong>%s</span> <a href="%
   s"><div class="meta-comments-count"><span aria-hidden="true" class="icon_comment_alt"
   ></span>%s</div></a>',`
 * Replace that with:
 * `printf( '<span class="meta-post-date"><strong>%s</strong></span> <a href="%s"
   ><div class="meta-comments-count"><span aria-hidden="true" class="icon_comment_alt"
   ></span>%s</div></a>',`
 * You may want to modify the CSS of the date output to make it fit/look better 
   in the box.
 * In `style.css` line 299 to 305 find this:
 *     ```
       .meta-date-wrap {
       	width: 165px;
       	height: 55px;
       	display: inline-block;
       	position: relative;
       	-webkit-perspective: 600px;
       }
       ```
   
 * _Change to something like this:_
 *     ```
       .meta-date-wrap {
       	width: 15%;
       	height: 55px;
       	display: inline-block;
       	position: relative;
       	-webkit-perspective: 600px;
       }
       ```
   
 * Here is a Pastebin link with everything wrapped up (just the functions.php part):
   
   [http://pastebin.com/P1CTGkL5](http://pastebin.com/P1CTGkL5)
 * To use your own formatting of the date, see the codex: [http://codex.wordpress.org/Formatting_Date_and_Time](http://codex.wordpress.org/Formatting_Date_and_Time)
 * Also. Best practice, and also more convenient is to use a child theme for modifications.
   But that is a different topic. More about this here: [http://codex.wordpress.org/Child_Themes ](http://codex.wordpress.org/Child_Themes)
   
   Good luck! / Christopher
 *  [squarm](https://wordpress.org/support/users/squarm/)
 * (@squarm)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/date-format-24/#post-4224700)
 * @ Christopher Anderton: Thank you so much – worked great for me!

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

The topic ‘Date Format’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/serene/1.4/screenshot.png)
 * Serene
 * [Support Threads](https://wordpress.org/support/theme/serene/)
 * [Active Topics](https://wordpress.org/support/theme/serene/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/serene/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/serene/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [squarm](https://wordpress.org/support/users/squarm/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/date-format-24/#post-4224700)
 * Status: not resolved