CFGRIDCOLUMN date mask

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default CFGRIDCOLUMN date mask

    I am trying to display a database date field using the Coldfusion MX 7
    CFGRIDCOLUMN tag.

    The following code displays the "CALL_DATE_TIME" date field as "Fri Feb 11
    09:32:02 GMT-0600 2005":
    <cfform name="form" action="form_act.cfm" method="post" format="flash">
    <cfgrid name="grid" query="getInfo" selectmode="single" height="400">
    <cfgridcolumn name="CALL_DATE_TIME" header="Call Date">
    </cfgrid>
    </cfform>

    When I apply the display MASK to the cfgridcolumn tag, the following code
    displays the "CALL_DATE_TIME" date field as "MM/DD/YYYY":
    <cfform name="form" action="form_act.cfm" method="post" format="flash">
    <cfgrid name="grid" query="getInfo" selectmode="single" height="400">
    <cfgridcolumn name="CALL_DATE_TIME" header="Call Date" mask="MM/DD/YYYY">
    </cfgrid>
    </cfform>

    Am I missing something here? Why is the display mask not working?

    rdellis Guest

  2. Similar Questions and Discussions

    1. Always Applying Date Mask on cfquery (MySQL)
      ColdFusion is displaying my dates in an incorrect timestamp format. I understand that the date can be masked using the DateFormat() function, but...
    2. COLDFUSION and date format in cfgridcolumn
      hello, How to make to put a date since a base mysql at the format mm/dd/yyyy in one cfgridcolumn At the moment my code is <cfgridcolumn...
    3. Date Mask in CFGRIDCOLUMN - CFMX 7
      Hello, I'm using CFGRID inside of a CFFORM format='flash'. It's pretty sweet functionality. Just got CFMX 7 2 days ago and I'm loving it...
    4. bug in flashForm masking date in a cfgridcolumn
      hi, I wrote some messages in this forum about the problem masking a date in a cfgridcolumn. (using a cfgrid with the data from a query). I just saw...
    5. CF7 - cfgridcolumn mask attribute acts strange
      Hi all, When I use the "mask" attribute in the cfgridcolumn tag, and fill in the value like "999". The user can still enter anything he want's...
  3. #2

    Default Re: CFGRIDCOLUMN date mask

    type="date"


    <cfgridcolumn name="CALL_DATE_TIME" header="Call Date" mask="MM/DD/YYYY" type="date">
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139