Tags, Assets and Templates > Creating and Editing Tags > Built-in Tag Types > Tag Formats
  
Tag Formats
For valid numeric formats, refer to Standard Numeric Format Strings (http://msdn.microsoft.com/en-us/library/dwhawy9k%28v=VS.90%29.aspx). For example: N1 (number with 1 decimal place).
For valid date and time formats, refer to Standard Date and Time Format Strings (http://msdn.microsoft.com/en-us/library/az4se3k1%28v=VS.90%29.aspx). For example: d (short date).
For a more in-depth discussion of format strings, refer to Formatting Types (http://msdn.microsoft.com/en-us/library/fbxft59x%28v=VS.90%29.aspx).
See Table 1 for numeric format examples.
 
Table 1: Numeric format examples
Specifier
Description
N0
Number with no decimal places
N3
Number with 3 decimal places
X
Hexadecimal (supported only for integral types)
C
Currency
See Table 2 for date/time format examples.
 
Table 2: Date/time format examples
Specifier
Description
T (only)
Long time pattern (equivalent to HH:mm:ss).
d (only)
Short date pattern (equivalent to M/d/yyyy (month/day/year) for en-us).
dd
Show the day of the month as a number from 01 through 31.
ddd
Show the abbreviated name of the day of the week.
dddd
Show the full name of the day of the week.
MM
Show the month as a number from 01 through 12.
MMM
Show the abbreviated name of the month.
yy
Show the year as a two-digit number.
yyyy
Show the year as a four-digit number.
hh
Show the hour as a number from 01 through 12.
HH
Show the hour as a number from 00 through 23.
mm
Show the minute as a number from 00 through 59.
ss
Show the seconds as a number from 00 through 59.
fff
Show the milliseconds as a number from 000 through 999.
tt
Show the A.M./P.M. designator.