How To Change Date and Time Format In WordPress

change date and time

Have you ever wondered to change the default date and time format in WordPress site of yours? Maybe you wanted to hide a year or month in the display time. Well, if you want to change date and time format in WordPress, then this post is just for you. 

At here, I have shown you the procedure to change date and time format in WordPress. Just follow the procedure till the very last then you will be able to change date and time format by yourself. Let’s begin then.  

What are Format Characters for Date and Time in WordPress?

The time format in WordPress is based on alphabetic characters. For instance, entering m will give an output like 12, which represents a month. Entering Y will give output like 2022, which represents a year.

Some examples of common date and time format characters are:

  • F j, Y g:i a – November 6, 2022 12:50 am
  • F j, Y – November 6, 2022
  • F, Y – November, 2022
  • g:i a – 12:50 am
  • g:i:s a – 12:50:48 am
  • l, F jS, Y – Saturday, November 6th, 2022
  • M j, Y @ G:i – Nov 6, 2022 @ 0:50
  • Y/m/d \a\t g:i A – 2022/11/06 at 12:50 AM
  • Y/m/d \a\t g:ia – 2022/11/06 at 12:50am
  • Y/m/d g:i:s A – 2022/11/06 12:50:48 AM
  • Y/m/d – 2022/11/06

When you write “Y/m/d” your date will be shown as 2022/12/17.

You can check the total formatting of the date and time from here.

How To Change Date And Time Format In WordPress

WordPress comes with a built-in function for adjusting date and time according to your need. To modify or change date and time navigate to the Settings -> General page in the admin area of your dashboard. 

Scroll down a little bit and you will found the option to change the date and time format. The date and time format are entirely based on alphabetic characters which represent date and time format. There are a few time and date format given in WordPress. You can choose any given format or use a custom format

To use custom formatting you have to use alphabetic characters. Write characters according to the format mentioned above, then the date and time will be shown in that way. 

Final Words

You can use any of the above formats, try now and apply the format that suits your WordPress website best. If you have any questions feel free to ask me, I will be happy to provide answers to your questions. If you liked this post please share this post with your friends and don’t forget to share your thought in the comment box below. 

Leave a Comment

Your email address will not be published.