Date and Time Format Tokens for Configuration Settings
Use these format tokens to specify date and time formats in configuration settings.
Token | Description |
---|---|
%a |
Displays the three-character abbreviated weekday name. For example, Monday = Mon. |
%A |
Displays the full weekday name. For example, Monday. |
%b |
Displays the three-character abbreviated month name. For example, March = Mar. |
%B |
Displays the full month name. For example, November. |
%d |
Displays the two-digit numeric day of the month. The first through ninth days of the month are preceded by a zero (01-09). |
%D |
Displays the date as MM/DD/YY (same as %m/%d/%y). |
%e |
Displays the numeric day of the month. The first through ninth days of the month are not preceded by a zero. |
%H |
Displays hours in 24-hour format. For example, 1 PM = 13. |
%I |
Displays the hour in 12-hour format. For example, 5 PM = 5. |
%j |
Displays the numeric day of the year. For example, April 7 = 97. |
%m |
Displays the month as a two-digit number. For example, November = 11. |
%M |
Displays the minutes as a two-digit number. |
%n |
Inserts a hard return. |
%p |
Displays the AM/PM indicator. |
%r |
Displays the time as HH:MM:SS AM/PM (same as %I:%M:%S %p). |
%R |
Displays the time as HH:MM (same as %H:%M). |
%S |
Displays the seconds as a two-digit number. |
%t |
Inserts a tab character. |
%T |
Displays the time as HH:MM:SS (same as %H:%M:%S). |
%y |
Displays the last two digits of the year. For example, 2008 = 08. |
%Y |
Displays the four-digit year. For example, 2008. |
%z |
Displays the abbreviated time zone name. For example, Mountain Standard Time = MST. |
%Z |
Displays the full time zone name. For example, Mountain Standard Time. |