- /
- /
- /
Change the Date/Time format in your WordPress site
Almost all of the themes display the published and/or updated date/time of the blog posts on the single page, archive page, and widgets which have basically the same format. This similar date/time format of the post might not be pleasing to all, but there is nothing to worry here because the format can be changed as required from the WordPress default settings.
To change the Date/Time format, please go to: Settings->General and under the section Date Format you will see various format options along with the Default and Custom. You can choose among the pre set formats or create a custom format to suit your requirement. However to create a custom format on has to have some knowledge on WordPress DateTime formatting which uses the PHP date format.
One Example:
jS F, Y - l
If the above string is entered in the custom field then the following format will be displayed.
6th March, 2017 - Monday
The meaning of each format character used above:
- j = The day of the month.
- S = The English suffix for the day of the month
- F = Full name for the month.
- Y = The year in 4 digits. (lower-case y gives the year’s last 2 digits)
- l = Full name for day of the week (lower-case L).
You can visit the WordPress documentation on the date and time formatting for more information.