Date Format

I want to use my own custom string to show date of posts. I’ve set everything in General Settings > Date Format, but theme still shows dates in format DAY, MONTH DATE, YEAR (i.e. Saturday, August 16th, 2014).

Please follow these instructions:

1. open inc/php/template-tags.php
2. find this line:

esc_html( get_the_date('l, F jS, Y') )

and change it to read:

esc_html( get_the_date(get_option('date_format')) )

3. save

For styles used in most European countries, you should use these:

  • j. F Y. (16. August 2014) or
  • j. m. Y. (16. 08. 2014.)

More details can be found here: http://codex.wordpress.org/Formatting_Date_and_Time

0