How can I change the date order?

Discussion in 'BlogSpring WordPress Theme.' started by byronjp, Feb 1, 2014.

  1. byronjp

    byronjp New Member

    Joined:
    Jul 15, 2013
    Messages:
    10
    Likes Received:
    0
    Hi there, I would like to know, how I can change the date order.
    Currently it displays on blog pages as month/date/year but I like to change year/month/date

    Kind regards,
    Nelson
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    Go to the inkthemes-functions.php file present in your theme directory and paste the code given below
    Code:
    <?php echo get_the_time('Y M d') ?> 
    in place of code

    Code:
    <?php echo get_the_time('d M Y') ?> 
    See the image for reference.

    [​IMG]

    Similarly, do the same in the single.php file present in your theme directory.

    This will solve your issue.
     
  3. byronjp

    byronjp New Member

    Joined:
    Jul 15, 2013
    Messages:
    10
    Likes Received:
    0
    Hi there,

    Thank you, it fixed some of it. But still one in Resent post shows M/D/Y... What should I do?
    Also, there is 月 in the date which is Japanese but I don't need this and how I can delete it?

    Kind regards.
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Go to the sidebar-home.php file present in your theme directory and paste the code given below

    Code:
    <?php echo get_the_time('Y M d') ?>  
    in place of code

    Code:
    <?php echo get_the_time('d M Y') ?>  
    Similarly, do the same in the post_widget.php file (Theme Directory > Functions Directory > post_widget.php ) present in your theme directory.

    This will solve your issue.
     
  5. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107

    Could you please specify us your issue with the help of screenshot images for this.
     
  6. byronjp

    byronjp New Member

    Joined:
    Jul 15, 2013
    Messages:
    10
    Likes Received:
    0
    Thank you for your advice.

    As you can see my website date 2013 12月 30 instead of the original - 2013 Dec 30

    airinelson.com

    And I would like you change the date style like 2013/12/30 if possible, please.

    Kind regards,
    Airi
     

Share This Page