Each text object, including data fields and calculated variables, has an optional display format. The display format for the object can be found in the Properties of the object on the left side of the DMS Report Designer. In the example below, the Variable Job: Total Remaining Hours is selected. By clicking on the icon next to the DisplayFormat (circled in red in the example below) in the Properties window, the Display format window appears enabling you to format the object:
The Display Format window has the following prompts:
Number
The Number category has 4 example formats you can choose from, or you can enter your own string format. The 4 example formats are:
The format string corresponding to the selected example format is shown in the Format string prompt. Format strings contain two types of objects; literal characters and format specifiers. Literal characters are copied word for word to the resulting string. Format specifiers fetch arguments from the argument list and apply the formatting to them.
Format specifiers have the following form:
"%" [width] ["." prec] type
A format specifier begins with a % character. After the percent sign comes the following elements, in this order:
The format string conversion type letter can be defined as follows:
d Decimal (integer)
e Scientific
f Fixed
g General
m Money
n Number (floating)
To specify the literal percent sign % in the format string, you would use %%.
Examples of Number
Date/Time
The Date/Time category has seven date format examples you can choose from, or you can enter your own string format. The seven format are:
The format string has several options that can be specified to build your own date format. These are:
y Year last 2 digits
yy Year last 2 digits
yyyy Year as 4 digits
m Month number no-leading 0
mm Month number as 2 digits
mmm Month using ShortDayNames (Jan)
mmmm Month using LongDayNames (January)
d Day number no-leading 0
dd Day number as 2 digits
ddd Day using ShortDayNames (Sun)
dddd Day using LongDayNames (Sunday)
ddddd Day in ShortDateFormat
dddddd Day in LongDateFormat
c Use ShortDateFormat + LongTimeFormat
h Hour number no-leading 0
hh Hour number as 2 digits
n Minute number no-leading 0
nn Minute number as 2 digits
s Second number no-leading 0
ss Second number as 2 digits
z Milli-sec number no-leading 0s
zzz Milli-sec number as 3 digits
t Use ShortTimeFormat
tt Use LongTimeFormat
am/pm Use after h : gives 12 hours + am/pm
a/p Use after h : gives 12 hours + a/p
ampm As a/p but TimeAMString,TimePMString
/ Substituted by DateSeparator value
: Substituted by TimeSeparator value
Boolean
The Boolean category has four Boolean format examples you can choose from, or you can enter your own string format. The four format are:
You can enter your own values for a Boolean format where the first value before the coma is for false and the value after the coma is for true.