{"id":10851332,"date":"2018-11-06T03:52:35","date_gmt":"2018-11-06T03:52:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=10851332"},"modified":"2023-01-12T21:25:15","modified_gmt":"2023-01-12T21:25:15","slug":"customize-date-and-time-format","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/customize-date-and-time-format\/","title":{"rendered":"Customize date and time format"},"content":{"rendered":"\n

Customizing the Time and Date Format<\/h2>\n\n\n\n

Certain WordPress tag functions are used to display or return date and time information; the_date()<\/a> and the_time()<\/a> are examples of this.<\/p>\n\n\n\n

By default, these functions will display or return date and time in format as it is set in Administration<\/a> > Settings<\/a> > General<\/a>. This is the place where customizing format for Date and Time will take effect throughout the whole WordPress installation.<\/p>\n\n\n\n

\"\"
Formatting Date and Time<\/figcaption><\/figure>\n\n\n\n

Notice the string of characters next to each Date and Time formatting in screenshot. This string is called a format string<\/strong>. Each letter represents specific part of Date or Time.<\/p>\n\n\n\n

For example, the format string:<\/p>\n\n\n\n

l, F j, Y<\/pre>\n\n\n\n

creates a date that look like this (note that commas are read literally):<\/p>\n\n\n\n

Friday, September 24, 2004<\/pre>\n\n\n\n

Here is what each format character in the string above represents:<\/p>\n\n\n\n