Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to modify the date display of the post entries from current format:

April 26, 2013

to this:


Where in the code can I make this change?

Thank you in advance!

share|improve this question

2 Answers 2

up vote 2 down vote accepted
the_time( 'm/d/Y' );


the_date( 'm/d/Y' );

Note, the_date() will not print the same value twice. If a second post would get the same output you get nothing.

If your theme doesn’t set a fixed value, like Twenty Twelve …


… then the format is taken from your settings in Settings/General Settings:

enter image description here

You can change the format here, no need to change the theme.

share|improve this answer
Thanks! - But where should I make that change, @toscho? – Astoria Apr 26 '13 at 15:02
@DimitriVorontzov Where these functions are used in your theme and you want to change the output. I don’t know the theme, so I cannot be more specific. :) – toscho Apr 26 '13 at 15:03
Oh, I see. It's TwentyTwelve, @toscho! – Astoria Apr 26 '13 at 15:04
@DimitriVorontzov See my update. – toscho Apr 26 '13 at 15:09
Perfect, thank you! – Astoria Apr 26 '13 at 15:11

You can change the post date format in Settings > General Under Date Format the third option down for mm/dd/yyyy

you can also do custom formatting by using the Custom option and PHP date time notation:

share|improve this answer
Thank you, @ckpepper02! I was trying to do that the hard way. ;-) – Astoria Apr 26 '13 at 15:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.