User Guide
202 Chapter 2: ColdFusion Tags
date/time formats in mask attribute
By default, Flash displays date/time values in grid columns using a format that shows values such
as Oct 29 2004 11:03:21. Use the
mask attribute to display the date or time in a different format,
as described in the following table:
Pattern letter Description
Y Year. If the number of pattern letters is two, the year is truncated to two digits;
otherwise, it appears as four digits. The year can be zero-padded, as the third
example shows in the following set of examples:
Examples:
YY = 03
YYYY = 2003
YYYYY = 02003
M Month in year. The format depends on the following criteria:
• If the number of pattern letters is one, the format is interpreted as numeric in one or
two digits.
• If the number of pattern letters is two, the format is interpreted as numeric in two
digits.
• If the number of pattern letters is three, the format is interpreted as short text.
• If the number of pattern letters is four, the format is interpreted as full text.
Examples:
M = 7
MM= 07
MMM=Jul
MMMM= July
DDay in month.
Examples:
D=4
DD=04
DD=10
E Day in week. The format depends on the following criteria:
• If the number of pattern letters is one, the format is interpreted as numeric in one or
two digits.
• If the number of pattern letters is two, the format is interpreted as numeric in two
digits.
• If the number of pattern letters is three, the format is interpreted as short text.
• If the number of pattern letters is four, the format is interpreted as full text.
Examples:
E = 1
EE = 01
EEE = Mon
EEEE = Monday
A AM/PM indicator.
JHour in day (0-23).
HHour in day (1-24).
KHour in am/pm (0-11).