Always Applying Date Mask on cfquery (MySQL)

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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
    since the queries are dynamically being generated and displayed I don't know
    the data type of the information without making an additional call to the
    information_schema in MySQL. Is there a way to tell ColdFusion to always
    display any date/time formats with a specific mask?

    iMadDeveloper Guest

  2. Similar Questions and Discussions

    1. 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...
    2. CFQUERY a Remote MySQL Server
      I have two networked MySQL web servers. My site root is on Server1, but I want to interrogate a database from Server2. How do I specify in the...
    3. cfquery for date not working
      Greetings - I am sure what I am missing is something simple. I am trying to query for a specific date in a database. However, when I search for a...
    4. 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...
    5. applying edit mask at run time
      At design time I apply an editmask by putting {0:C} as an attribute to a column. In a current project I need to apply and change this at run time....
  3. #2

    Default Re: Always Applying Date Mask on cfquery (MySQL)

    If you're using MX7, you could use the GetMetaData() function to return the data types of the columns in the cfquery and then use dateFormat() if the dynamic column is a date/time column.

    mxstu 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