How to change the date format in WordPress

Do you need to change the date format used on your site?

WordPress has a simple dashboard setup for this, so you don’t have to install new plugins.

In this post, you will learn how to change the format and create your own custom date formats.

Here’s how to change the date format

If you prefer a video, you can follow my tutorial here:

Subscribe to my channel YouTube

To change the format, visit the General Settings page of your dashboard. There you see the configuration.

There are some existing formats that you can choose from. Choose a new format and save the changes to update the date format on your site.

The new format is used site-wide in places like the post line and in comments if your topic contains comment data.

If you don’t see the format you want, you can create yours.

How to create a custom date format

The first step is to visit the documentation of the date and time format at wordpress.org. There you will find a table with the characters with which you can create your own format.

Imagine, for example. A site that is published once a month. Since there is only one post per Month, there is no need to show the exact day it was posted. This means that you can use a format like.

You can find signs of the month name in the WordPress documentation (F) and follow it with a space and the year sign (Y).

If you know the characters, enter them in the format box and save your new settings.

Recommended
What controls your life is it your consciousness or your zombie state?

The data is immediately updated on your site.

Here’s how to add a timestamp

Most WordPress users don’t know that they can use timestamp characters in their date format. Take for example. These date formats:

2April 2016 – – F j, Y.

8:11 in the afternoon – – g: i a

The first is an example of a date format and the second is a timestamp.

You can combine these characters to create a date format that includes a timestamp like the following:

2April 2016 8:11 in the afternoon – – F j, Y, g: i a

Use the characters F j, Y, g: i a. The data of the entire website can be updated to show both the date and the date and time of publication.

Some themes may not support date and time sharing, but all formats are compatible with our free WordPress themes.

conclusion

Changing the date format used on your site with WordPress is easy.

If one of the existing formats meets your requirements, you can quickly select it and continue on your way. Creating your own date formats provides much more flexibility in customizing how dates appear on your site.

Related Articles

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker. Thanks.