Customization Options With Date Formats In WordPress

By | October 24, 2011

When WordPress is used as a CMS on a Web Hosting account, it provides many great features within its Dashbord. ‘Date Format’ and ‘Time Format’ are two of these options available to display the Date and Time on your website or blog, according to your need. There are some regularly found formats available in predefined form, but few webmasters like to use their own customized formats. The ‘Custom’ option button (radio button) is available under both ‘Date Format’ and ‘Time Format’ for such customization. This post is for the webmasters who are newbies and never handled these predefined formats in custom field.

Following are the characters to be entered in the ‘Text Box’ beside the custom button option under ‘Date Format’, to get the output shown on the actual Website or Blog.

d

Small form of character ‘D’ is used to get the output of Date as ‘Numeric and with leading zero’ for example Dates from 1 to 9 will be shown as 01, 02, 03……

j

Small form of the character ‘J’ is used to get appearance of full name of the Date of month in numeric format. e.g. 1, 2, 3…..

S

Capital form of the character ‘S’ is used to get the appearance of suffix for the date . e.g. ‘st‘, ‘nd‘, ‘rd‘, ‘th‘ in 1st, 2nd, 3rd, 4th…..

l

Small form of the character ‘L’ used to get the appearance of full name of the day. e.g. Monday, Tuesday…..

D

Capital form of the character ‘D’ is f used to get the appearance of day of the week with first three characters only. e.g. Mon, Tue, Wed…

m

Small form of character ‘M’ is used to get the appearance of Month as ‘Numeric and with leading zero’ format. e.g. month of from January to December will be shown as 01 to 12…..

n

Small form of character ‘N’ is used to get the appearance of Month as ‘Numeric and without leading zero’ format. e.g. month of from January to December will be shown as 1, 2, 3, 4, to 12

F

Capital form of character ‘F’ is used to get the appearance of Month as ‘Full name as Characters’ format. e.g. January, February…..

M

Capital form of character ‘M’ is used to get the appearance of Month as ‘with first three characters only.’ e.g. Jan, Feb, Mar…..

Y

Capital form of character ‘Y’ is used to get the appearance of a Year as ‘Numeric and with four digits’ e.g. 2011, 2012….

y

Small form of character ‘N’ is used to get the appearance of Year as ‘‘Numeric and with two digits’. e.g. Year 2011 and 2012 will appear as 11 and 12 respectively.