Title: Changing the date format
Last modified: August 18, 2016

---

# Changing the date format

 *  [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * (@jry1209)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/)
 * I see how to change the actual format of the date, but how can I actually change
   the look and feel of how it is displayed? I’d like it to be more prominant near
   the top on the left or right hand side. Is this something that needs to be edited
   in the CSS file or in one of the php files?
 * [http://www.jasonyormark.com](http://www.jasonyormark.com)

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176901)
 * You’ll need to edit the index.php directly to move the date, and then use CSS
   to alter the styling.
    Take it out from where it is (in the meta div ?) and experiment
   a bit ?
 *  Thread Starter [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * (@jry1209)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176913)
 * Better yet, how can I use the date format used on this template on my site:
 * [http://www.alexking.org/software/wordpress/themes/blog/](http://www.alexking.org/software/wordpress/themes/blog/)
 * Love that look, but trying to figure out how to implement it into my design:
 * [http://www.jasonyormark.com](http://www.jasonyormark.com)
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176914)
 * `<?php if (have_posts()) : while (have_posts()) : the_post(); ?>`
 * <?php the_date('','<h2>','</h2>'); ?>
 * <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href
   ="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
 * And the line that starts `<div class="meta">` do whatever you want with ?
 * Your css will need changing, but the above is a start.
    (The above is straight
   from the Classic template)
 *  Thread Starter [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * (@jry1209)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176916)
 * Where would this snippet of code be placed and in place of what?
 * Also, what parameters would need to be changed in the CSS? Sorry, a little familiar
   with this stuff, but still new.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176918)
 * Edit your index.php, and you should see a line that says `div class="post">` 
   and what I have put above goes around that. You will need to remove what is there
   so the duplication does not occur.
 * Take a few minutes just to compare the files and you’ll see – it may be helpful
   to copy/paste things into Notepad.
 * Once it’s in index, and is roughly where you want it to be, pop back and we’ll
   sort the CSS. It’s better to tackle one issue at a time 🙂
 * If you get stuck, post your index.php to this location:
    [http://paste.uni.cc](http://paste.uni.cc)
   and then post the URL it gives you back here. We can then see and edit your code
   if you get too confused by it all.
 *  Thread Starter [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * (@jry1209)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176920)
 * [http://paste.uni.cc/6835](http://paste.uni.cc/6835)
 * Think my code is a bit different so let’s try this. Thanks for the assistance.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176921)
 * ` < !--
    <h2 class="entrydate"><?php the_date() ?></h2> -->
 * See those two lines –> ? Delete theme and your date will pop into view.
 *  Thread Starter [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * (@jry1209)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176927)
 * Hmmm…I’m not having a problem with the date showing, just changing the format
   of it. I deleted the code you just showed me, but it didn’t change anything. 
   Perhaps I misread what you meant to do.
 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176930)
 * If you remove just the two lines which Podz mentioned, i.e.
    `<!--` and `-->`(
   Those are HTML comments which ‘comment out’ everything in between them.) You 
   should then see the date appearing above the posts. It should look something 
   like [this](http://www.endturn.com/words/index.php?wptheme=Flex+V1)
 * BTW, and slightly OT, but [that’s](http://paste.uni.cc) an useful page which 
   Podz provided. I didn’t know about that one.
 *  Thread Starter [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * (@jry1209)
 * [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176941)
 * ah, got it…thanks for the assistance

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

The topic ‘Changing the date format’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [Jason Yormark](https://wordpress.org/support/users/jry1209/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/changing-the-date-format/#post-176941)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
