Data Access User Manual > Rogue Wave Views Data Access Gadgets > Mask Syntax > Predefined Masks
 
Predefined Masks
Predefined masks are used to set format specifications for date and time. You can define your predefined masks in the Masks section of the Application Properties panel of Rogue Wave® Views Studio. The following table defines and names the format showing how they are displayed. In the mask format, characters representing the decimal point depend on application settings. The first column shows the decimal formats, the second shows the value, and the final column shows the format applied to the values.
Mask
Value
Display
000.0
123.8
123.8
“(“00”)”000.0##
12345.789
(12)345.789
“(“00”)”000.0##
12345.78
(12)345.78
“(“00”)”000.0##
12345
12345
“(“00”)”000.0##
12345.9999
12345.9999
The following table provides the name of the date mask in the first column and shows how the dates will be displayed in the second column.
Name
Display
Date, mmm/dd/yyyy
mmm/dd/yyyy
Date, mmm/dd/yy
mmm/dd/yy
Date, mm/dd/yy
mm/dd/yy
Date, mm/dd/yyyy
mm/dd/yyyy
Time
(This mask works
only if the data type
is time.)
hh:mm:ss

Version 6.0
Copyright © 2015, Rogue Wave Software, Inc. All Rights Reserved.