<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Change date format &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/change-date-format-2/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/change-date-format-2/feed/</link>
		<description></description>
		<lastBuildDate>Mon, 17 Nov 2025 06:34:32 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-146552</guid>
					<title><![CDATA[Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-146552</link>
					<pubDate>Mon, 17 Nov 2014 09:54:18 +0000</pubDate>
					<dc:creator>heithu</dc:creator>

					<description>
						<![CDATA[
						<p>Hi X,</p>
<p>Using the latest X (Icon) and WP. Not published site yet.</p>
<p>I want to change the date format for the posts. In wp I have set how I want it to look, but that is not the way it looks in X.</p>
<p>How to change that?</p>
<p>If it involves child theme and php, can you tell me if there is a video on how to work change php in the knowledge base?</p>
<p>Thank you. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-146746</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-146746</link>
					<pubDate>Mon, 17 Nov 2014 14:13:33 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Heithu,</p>
<p>Thank you for posting in!</p>
<p>You can change the date format by simply going into <strong>Settings &gt; General</strong> and change the format under <strong>Date Format</strong> (see: <a href="http://prntscr.com/57a8b2" rel="nofollow">http://prntscr.com/57a8b2</a>).</p>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-147407</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-147407</link>
					<pubDate>Tue, 18 Nov 2014 10:59:42 +0000</pubDate>
					<dc:creator>heithu</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, </p>
<p>Thank you for your quick answer.</p>
<p>Doing that it shows the correct date format under &#8220;recents posts&#8221;. Yay!</p>
<p>But in the blogpost itself, it shows the incorrect dateformat.</p>
<p>Can you help me with that?</p>
<p>Thank you. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-147679</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-147679</link>
					<pubDate>Tue, 18 Nov 2014 16:12:18 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>I&#8217;m not sure how you want it to help you more ,but i can tell you where it is located exactly.<br />
Please copy this code in <strong>function.php</strong> file inside your child theme:</p>
<pre><code>&lt;?php

// =============================================================================
// FUNCTIONS/ICON.PHP
// -----------------------------------------------------------------------------
// Icon specific functions.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Entry Meta
//   02. Portfolio Tags
//   03. Individual Comment
//   04. Comment Number and Link
// =============================================================================

// Entry Meta
// =============================================================================

if ( ! function_exists( &#039;x_icon_entry_meta&#039; ) ) :
  function x_icon_entry_meta() {

    $date = sprintf( &#039;&lt;span&gt;&lt;time class=&quot;entry-date&quot; datetime=&quot;%1$s&quot;&gt;%2$s&lt;/time&gt;&lt;/span&gt;&#039;,
      esc_attr( get_the_date( &#039;c&#039; ) ),
      esc_html( get_the_date( &#039;m.d.Y&#039; ) )
    );

    if ( x_does_not_need_entry_meta() ) {
      return;
    } else {
      printf( &#039;&lt;p class=&quot;p-meta&quot;&gt;%s&lt;/p&gt;&#039;,
        $date
      );
    }

  }
endif;

// Portfolio Tags
// =============================================================================

if ( ! function_exists( &#039;x_icon_portfolio_tags&#039; ) ) :
  function x_icon_portfolio_tags() {

    $terms = get_the_terms( get_the_ID(), &#039;portfolio-tag&#039; );

    echo &#039;&lt;ul class=&quot;inline&quot;&gt;&#039;;
    foreach( $terms as $term ) {
      echo &#039;&lt;li&gt;&lt;a href=&quot;&#039; . get_term_link( $term-&gt;slug, &#039;portfolio-tag&#039; ) . &#039;&quot;&gt;&lt;i class=&quot;x-icon-tag&quot;&gt;&lt;/i&gt; &#039; . $term-&gt;name . &#039;&lt;/a&gt;&lt;/li&gt;&#039;;
    };
    echo &#039;&lt;/ul&gt;&#039;;

  }
endif;

// Individual Comment
// =============================================================================

//
// 1. Pingbacks and trackbacks.
// 2. Normal Comments.
//

if ( ! function_exists( &#039;x_icon_comment&#039; ) ) :
  function x_icon_comment( $comment, $args, $depth ) {

    $GLOBALS[&#039;comment&#039;] = $comment;
    switch ( $comment-&gt;comment_type ) :
      case &#039;pingback&#039; :  // 1
      case &#039;trackback&#039; : // 1
    ?&gt;
    &lt;li &lt;?php comment_class(); ?&gt; id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;
      &lt;p&gt;&lt;?php _e( &#039;Pingback:&#039;, &#039;__x__&#039; ); ?&gt; &lt;?php comment_author_link(); ?&gt; &lt;?php edit_comment_link( __( &#039;(Edit)&#039;, &#039;__x__&#039; ), &#039;&lt;span class=&quot;edit-link&quot;&gt;&#039;, &#039;&lt;/span&gt;&#039; ); ?&gt;&lt;/p&gt;
    &lt;?php
        break;
      default : // 2
      GLOBAL $post;
      if ( X_WOOCOMMERCE_IS_ACTIVE ) :
        $rating = esc_attr( get_comment_meta( $GLOBALS[&#039;comment&#039;]-&gt;comment_ID, &#039;rating&#039;, true ) );
      endif;
      if ( x_is_product() ) :
        $comment_time = sprintf( __( &#039;%1$s&#039;, &#039;__x__&#039; ), get_comment_date() );
      else :
        $comment_time = sprintf( __( &#039;%1$s at %2$s&#039;, &#039;__x__&#039; ), get_comment_date(), get_comment_time() );
      endif;
    ?&gt;
    &lt;li id=&quot;li-comment-&lt;?php comment_ID(); ?&gt;&quot; &lt;?php comment_class(); ?&gt;&gt;
      &lt;?php $comment_reply = ( ! x_is_product() ) ? &#039;&lt;div class=&quot;x-reply&quot;&gt;&#039; . get_comment_reply_link( array_merge( $args, array( &#039;reply_text&#039; =&gt; __( &#039;Reply&lt;span class=&quot;comment-reply-link-after&quot;&gt;&lt;i class=&quot;x-icon-reply&quot;&gt;&lt;/i&gt;&lt;/span&gt;&#039;, &#039;__x__&#039; ), &#039;depth&#039; =&gt; $depth, &#039;max_depth&#039; =&gt; $args[&#039;max_depth&#039;] ) ) ) . &#039;&lt;/div&gt;&#039; : &#039;&#039;; ?&gt;
      &lt;?php
      printf( &#039;&lt;div class=&quot;x-comment-img&quot;&gt;%1$s %2$s %3$s&lt;/div&gt;&#039;,
        &#039;&lt;span class=&quot;avatar-wrap cf&quot;&gt;&#039; . get_avatar( $comment, 120 ) . &#039;&lt;/span&gt;&#039;,
        ( $comment-&gt;user_id === $post-&gt;post_author ) ? &#039;&lt;span class=&quot;bypostauthor&quot;&gt;&#039; . __( &#039;Post&lt;br&gt;Author&#039;, &#039;__x__&#039; ) . &#039;&lt;/span&gt;&#039; : &#039;&#039;,
        $comment_reply
      );
      ?&gt;
      &lt;article id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot; class=&quot;comment&quot;&gt;
        &lt;header class=&quot;x-comment-header&quot;&gt;
          &lt;?php
          printf( &#039;&lt;cite class=&quot;x-comment-author&quot;&gt;%1$s&lt;/cite&gt;&#039;,
            get_comment_author_link()
          );
          if ( x_is_product() &amp;&amp; get_option( &#039;woocommerce_enable_review_rating&#039; ) == &#039;yes&#039; ) : ?&gt; 
            &lt;div class=&quot;star-rating-container&quot;&gt;
              &lt;div itemprop=&quot;reviewRating&quot; itemscope itemtype=&quot;http://schema.org/Rating&quot; class=&quot;star-rating&quot; title=&quot;&lt;?php echo sprintf(__( &#039;Rated %d out of 5&#039;, &#039;woocommerce&#039; ), $rating) ?&gt;&quot;&gt;
                &lt;span style=&quot;width:&lt;?php echo ( intval( get_comment_meta( $GLOBALS[&#039;comment&#039;]-&gt;comment_ID, &#039;rating&#039;, true ) ) / 5 ) * 100; ?&gt;%&quot;&gt;&lt;strong itemprop=&quot;ratingValue&quot;&gt;&lt;?php echo intval( get_comment_meta( $GLOBALS[&#039;comment&#039;]-&gt;comment_ID, &#039;rating&#039;, true ) ); ?&gt;&lt;/strong&gt; &lt;?php _e( &#039;out of 5&#039;, &#039;woocommerce&#039; ); ?&gt;&lt;/span&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;?php endif;
          printf( &#039;&lt;div&gt;&lt;a href=&quot;%1$s&quot; class=&quot;x-comment-time&quot;&gt;&lt;time datetime=&quot;%2$s&quot;&gt;%3$s&lt;/time&gt;&lt;/a&gt;&lt;/div&gt;&#039;,
            esc_url( get_comment_link( $comment-&gt;comment_ID ) ),
            get_comment_time( &#039;c&#039; ),
            $comment_time
          );
          edit_comment_link( __( &#039;&lt;i class=&quot;x-icon-edit&quot;&gt;&lt;/i&gt; Edit&#039;, &#039;__x__&#039; ) );
          ?&gt;
        &lt;/header&gt;
        &lt;?php if ( &#039;0&#039; == $comment-&gt;comment_approved ) : ?&gt;
          &lt;p class=&quot;x-comment-awaiting-moderation&quot;&gt;&lt;?php _e( &#039;Your comment is awaiting moderation.&#039;, &#039;__x__&#039; ); ?&gt;&lt;/p&gt;
        &lt;?php endif; ?&gt;
        &lt;section class=&quot;x-comment-content&quot;&gt;
          &lt;?php comment_text(); ?&gt;
        &lt;/section&gt;
      &lt;/article&gt;
    &lt;?php
        break;
    endswitch;

  }
endif;

// Comment Number and Link
// =============================================================================

if ( ! function_exists( &#039;x_icon_comment_number&#039; ) ) :
  function x_icon_comment_number() {

    if ( comments_open() ) {

      $title  = apply_filters( &#039;x_entry_meta_comments_title&#039;, get_the_title() );
      $link   = apply_filters( &#039;x_entry_meta_comments_link&#039;, get_comments_link() );
      $number = apply_filters( &#039;x_entry_meta_comments_number&#039;, get_comments_number() );

      if ( $number == 0 ) {
        $comments = &#039;&#039;;
      } else {
        $comments = sprintf( &#039;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&gt;%3$s&lt;/a&gt;&#039;,
          esc_url( $link ),
          esc_attr( sprintf( __( &#039;Leave a comment on: &amp;ldquo;%s&amp;rdquo;&#039;, &#039;__x__&#039; ), $title ) ),
          number_format_i18n( $number )
        );
      }

    } else {

      $comments = &#039;&#039;;

    }

    $post_type      = get_post_type();
    $post_type_post = $post_type == &#039;post&#039;;
    $no_post_meta   = x_get_option( &#039;x_blog_enable_post_meta&#039;, &#039;&#039; ) == &#039;&#039;;

    if ( $post_type_post &amp;&amp; $no_post_meta ) {
      return;
    } else {
      echo $comments;
    }

  }
endif;</code></pre>
<p>In line 26 <code>get_the_date( &#039;m.d.Y&#039; )</code> is where you can edit date format.</p>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-148272</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-148272</link>
					<pubDate>Wed, 19 Nov 2014 09:01:41 +0000</pubDate>
					<dc:creator>heithu</dc:creator>

					<description>
						<![CDATA[
						<p>Hi and thanks,</p>
<p>Sorry for not being clear/precise. I will try to explain it better:</p>
<p>I want this format for date: &#8220;14. november 2014&#8221;.</p>
<p>And on my front page where I show the four most recent posts, it says exactly that: &#8220;14. november 2014&#8221; whereas when you click on that and get to the actual post itself, the date format is &#8220;11.14.2014&#8221;. And that is not the format I want.</p>
<p>Hope I have described my problem a bit better now, and sorry for not being precise the first time around.</p>
<p>Thanks. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-148530</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-148530</link>
					<pubDate>Wed, 19 Nov 2014 16:15:58 +0000</pubDate>
					<dc:creator>Cousett</dc:creator>

					<description>
						<![CDATA[
						<p>Change line 26 in the code above to <code>esc_html( get_the_date( &#039;j.F Y&#039; ) )</code></p>
<p>Essentially add the following to your functions file:</p>
<pre><code>// Entry Meta
// =============================================================================

if ( ! function_exists( &#039;x_icon_entry_meta&#039; ) ) :
  function x_icon_entry_meta() {

    $date = sprintf( &#039;&lt;span&gt;&lt;time class=&quot;entry-date&quot; datetime=&quot;%1$s&quot;&gt;%2$s&lt;/time&gt;&lt;/span&gt;&#039;,
      esc_attr( get_the_date( &#039;c&#039; ) ),
      esc_html( get_the_date( &#039;j.F Y&#039; ) )
    );

    if ( x_does_not_need_entry_meta() ) {
      return;
    } else {
      printf( &#039;&lt;p class=&quot;p-meta&quot;&gt;%s&lt;/p&gt;&#039;,
        $date
      );
    }

  }
endif;</code></pre>
<p>Hope this helps. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-160861</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-160861</link>
					<pubDate>Tue, 09 Dec 2014 05:55:24 +0000</pubDate>
					<dc:creator>Jen H</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;d like to change the date format on comments.  I have &#8220;9 December,2014&#8221; (j F, Y) checked under Settings&gt;General&gt;Date Format, but the comment dates show as 12/09/2014 (which is not the Australian format for dates &#8211; should be dd/mm/yy). We&#8217;d like to show version above or 09/12/2014. Can you please help?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-160879</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-160879</link>
					<pubDate>Tue, 09 Dec 2014 06:19:22 +0000</pubDate>
					<dc:creator>Jen H</dc:creator>

					<description>
						<![CDATA[
						<p>By the way, I&#8217;m using Renew Stack and latest version of theme.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/change-date-format-2/#post-161073</guid>
					<title><![CDATA[Reply To: Change date format]]></title>
					<link>https://theme.co/archive/forums/topic/change-date-format-2/#post-161073</link>
					<pubDate>Tue, 09 Dec 2014 11:50:43 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Jen,</p>
<p>Thanks for writing in!</p>
<p>To change the date format in your comments, you can add the code below in your child theme&#8217;s functions.php</p>
<pre><code>
add_filter( &#039;get_comment_date&#039;, &#039;change_comment_date_format&#039; );    
function change_comment_date_format( $d ) {
    $d = date(&quot;d/m/Y&quot;);    
    return $d;
}    
</code></pre>
<p>Hope that helps. 🙂</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

