How to Quickly Change the **** and Time Format in WordPress » Rank Math

Have you ever wanted to change your WordPress site’s **** and time format?

There are various ways to express **** and time. A **** and time format that works for one might not necessarily work for the other. You may prefer writing the month and then the ****, or vice versa. Perhaps you’re a fan of abbreviated months or prefer expressing the months as numbers.

The same goes for time. Some prefer to utilize 12-hour clocks, while others only use 24-hour time. However, understanding how to format the **** and time comes in handy. It gives you the freedom to make a **** more readable for users.

For example, “On Monday the 4th of Apr, 2023” is more readable than minimal **** displays like “04.04.2023”. However, the latter does have its place. The same goes for formatting the current time on a website. Some sites may benefit from a 12hr display like “9:30 pm” while others (like military or medical sites) would rather have a 24hr display like “21:30”.

Whatever your preferred format is, you’ll be delighted to hear that it’s possible (and very easy) to change the **** and time format from your WordPress dashboard.

1 Change the **** and Time Settings in WordPress

WordPress has built-in functions allowing users and developers to format dates and times. You can change the **** and time format by navigating to Settings > General page from your WordPress dashboard.

Scroll down to find Timezone, **** Format & Time Format sections. You can then change the **** and time format as per your preferences. Let’s look at each of the sections in detail.

change the **** and time format in WordPress

1.1 Timezone

You can start by typing in the city’s name and then choosing from the results in the dropdown menu.


Alternatively, you can set the UTC time zone, as shown below.

UTC timezone

1.2 **** Format

You’ll notice the **** Format settings just below the Timezone settings. You can select the **** format per your preference or even set a custom ****.

**** format setttings

To set a custom ****, click the Custom radio button and enter the format you wish to set. For instance, we set a custom **** as shown below.

set custom ****

Check the preview to ensure you chose the correct format. If you use punctuation marks like commas or dashes, note that they’ll be used everywhere.

preview ****

1.3 Time Format

Next, you can set the time format located just under the **** format settings.

time format settings

Again, you can choose from one of the existing options or click on the Custom option to define your own. You can preview the selected format below.

custom time format

You can also set the starting day of the week by selecting the day from the drop-down menu, as shown below.

week starts on option

Once you’ve made changes, click on the Save Changes button. And that’s how you can quickly change the **** and time format in your WordPress site.

2 WordPress Time and **** Formats

There is a string of characters known as the format string next to each option for **** Format and Time Format on the Settings’ General page.

format string for for **** and time format

These format characters represent different elements of the **** and time structure. Here is an illustration of what each character in the m/d/Y format string denotes:

  • – the numeric month with a leading zero.
  • – the numeric day of the month with a leading zero.
  • – the four-digit year.

Therefore, this string will output:


You can also create your own custom structure string using the following **** and time format characters.

Display Example
F The month’s full name January – December
M The month’s three-letter abbreviation Jan – Dec
m The numeric month with leading zeros 01 – 12
n The numeric month without leading zeros 1 – 12
Day of the month
d The numeric day of the month with leading zeros 01 – 31
j The numeric day of the month without leading zeros 1 – 31
S The English suffix for the numeric day of the month st (in 1st), nd (in 2nd)
Day of the week
l (lower-case letter L) The day of the week’s full name Monday – Sunday
D The day of the week’s three-letter abbreviation Mon – Sun
Y The four-digit year 2023
y The two-digit year 22
a Lowercase am or pm am, pm
A Uppercase AM or PM AM, PM
g The hour in a 12-hour format without leading zeros 1 – 12
h The hour in a 12-hour format with leading zeros 01 – 12
G The hour in a 24-hour format without leading zeros 0 – 23 
H The hour in a 24-hour format with leading zeros 0 – 23
i Minutes with leading zeros 00 – 59
s Seconds with leading zeros 00 – 59
T The timezone abbreviation PST, EDT
Full **** and time
c ISO 8601 format 2022-10-29T18:56:24+00:00
r RFC 2822 format Mon, 04 April 2023 18:56:24+0200
U Unix Timestamp (seconds since the Unix epoch, January 1, 1970 00:00:00 GMT) 1661842310

3 Examples of Time and **** Format Strings

Some examples of commonly used **** and time format characters are as follows:

  • M d, Y – will output – Apr 04, 2023
  • d M, Y – will output – 04 Apr, 2023
  • F jS, Y – will output – April 4th, 2023
  • l, F jS, Y – will output – Monday, April 4th, 2023
  • H:i:s – will output – 21:24:12
  • F j, Y g: i a – will output – April 4, 2023 10:45 am

4 Conclusion

As you’ve seen, you can easily change the **** and time formats based on your preference. It takes a few simple steps in your WordPress dashboard, and the best part is you can always change the **** and time or even create custom formats. Not only this, but WordPress also allows you to change the **** and time of your posts/pages.

The **** and Time format may vary in the different time zones, so ensure you have proper knowledge about these zones before you get your hands dirty in customizing **** and time zones in WordPress.

What are you waiting for? Get started, change the **** and time to make your site more attractive and elegant, or use custom **** and time formats. If you like this post, let us know by Tweeting @rankmathseo.

Source link

Related Articles

Back to top button
Social media & sharing icons powered by UltimatelySocial

Enjoy Our Website? Please share :) Thank you!

New Social Bookmarking Site Lists 2023

We will update more Social Bookmarking lists soon. Visit all our social bookmarking sites' pages regularly..

New Social Bookmarking Sites List,
USA Social Bookmarking Sites,
UK Social Bookmarking Sites,
Netherlands Social Bookmarking Sites,
Top USA Social Bookmarking,
Alexa Traffic Social Bookmarking Sites,
High DA Social Bookmarking Sites, and
High DR Social Bookmarking Sites.

Submit your Website