Log in

No account? Create an account

The S2 HowTo Journal

Tips, Tricks, and Tutorials for Basic S2 Customization

Previous Entry Share Flag Next Entry
Date and Time Formats
howto_user wrote in s2howto
Many layouts offer you the ability to change the way the date or the time is displayed in your layout; this option is available in the layout's customization wizard.

In order to format the date and time the way you'd like, you will need to use the variables described below. You can put these together in any order you want, with any other text you want, in order to display the date/time the way you'd like it. None of these variables are required, so if you don't want to display any particular portion of the date/time, you can simply omit that variable.

For example, if you use "%%da%%, %%mon%%. %%dayord%% (%%yyyy%%)", the date will be displayed as "Tue, Feb. 5th (1980)". Similarly, "%%m%%/%%yyyy%%" will appear as "2/2006", and so on.

Time Formats

Hour, 0-23.
Hour, 00-23.
Hour, 1-12.
Hour, 01-12.
Minute, 00-59.
Second, 00-59.
"a" for am, "p" for pm
You can use %%a%%m to form "am" or "pm"
"A" for am, "P" for pm
You can use %%A%%M to form "AM" or "PM"

Date Formats

Day of Week
Short day of week, translated. (English: Sun, Mon, …)
Long day of week, translated. (English: Sunday, Monday, …)
Day, 1-31.
Day, 01-31.
Ordinal day of week, translated. (English: 1st, 2nd, 3rd, …)
Month, 1-12.
Month, 01-12.
Short month name, translated. (English: Jan, Feb, …)
Long month name, translated. (English: January, February, …)
Year, two digits.
Year, four digits.

Comments Disabled:

Comments have been disabled for this post.