Forums

Change Date format (6 posts)

  1. radimeq
    Member
    Posted 4 years ago #

    Is there a chance to change the date format like the following? In my language (czech), we do not use the capital letter at the beginning of month name (e.g. january instead of January). Thanks for ANY ideas.

  2. MichaelH
    Volunteer
    Posted 4 years ago #

    Depending on where you want that change, say your theme, then you'd need to use the proper date format.

    See if Formatting_Date_and_Time helps.

  3. radimeq
    Member
    Posted 4 years ago #

    I'm afraid I don't understand:( I tried to use http://codex.wordpress.org/Formatting_Date_and_Time, but I haven't found what I'm looking for..

  4. whooami
    Member
    Posted 4 years ago #

    there is no way to automatically have lower case dates.

    if you want that then you will need to do something like this:

    strtolower(the_time('F jS, Y'));

    you can do the strtolower on just the month as well -- look around the web there are examples everywhere.

  5. radimeq
    Member
    Posted 4 years ago #

    If I have <?php the_time('j. F, Y'); ?>, where do I have to put strtolower(the_time('F jS, Y')); ?

  6. whooami
    Member
    Posted 4 years ago #

    <?php strtolower(the_time('j F, Y')); ?>

    all you are doing is using strtolower to turn things into lowercase.

Topic Closed

This topic has been closed to new replies.

About this Topic