CFMX7 & informix Date conversion woes

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

  1. #1

    Default CFMX7 & informix Date conversion woes

    I have a trial install of CF MX7 w/ informix 9.3 on linux. Everything works
    fine until I query using dates.
    The front-end MUST allow users to query in "MM/DD/YY" format.
    When I submit a cfm page it dies with the error - "ERROR executing Database
    Query...string to date conversion error"
    However the same page works okay if the date is submitted in the format
    "YYYY-MM-DD'
    I tried setting the env variable DBDATE, but that has not helped.
    Any thoughts?

    CheapEnergy Guest

  2. Similar Questions and Discussions

    1. CFMX7 Installation Woes (404 null)
      I'm trying to install ColdFusion MX7 to a brand new Windows 2003 server with IIS for one of my clients. I get one error when I install: ...
    2. XML Date Conversion
      Anyone know how to convert this: 2005-01-17T06:31:54Z into something useful? I can't seem to find the correct combinations of functions to convert...
    3. help with date conversion
      Hello All I have used the time() function to create entries into a MySQL Dbase. However, I am now unable to convert that string back to...
    4. date conversion
      Hi all, Is there a way to get a short date, eg. 2/3/03 and test what format is is set to from within director. Like if it is DD/MM/YY or...
    5. Date Woes
      I am trying to convert a date from this format: yyyymmddHHMMSS.mmmmmmsUUU to a format that ASP.NET (VB.NET) understands. The above date...
  3. #2

    Default Re: CFMX7 & informix Date conversion woes

    Write some code to format the date so that you can make it play with your db.

    Originally posted by: CheapEnergy
    I have a trial install of CF MX7 w/ informix 9.3 on linux. Everything works
    fine until I query using dates.
    The front-end MUST allow users to query in "MM/DD/YY" format.
    When I submit a cfm page it dies with the error - "ERROR executing Database
    Query...string to date conversion error"
    However the same page works okay if the date is submitted in the format
    "YYYY-MM-DD'
    I tried setting the env variable DBDATE, but that has not helped.
    Any thoughts?



    Dan Bracuk Guest

  4. #3

    Default Re: CFMX7 & informix Date conversion woes

    The correct way is to use the new 3.5 JDBC driver and to set the DBDATE
    envrionment variable in the connection string


    However I am having problems doing this.

    I put : DBDATE=MDY4 in the connection string field and restarted CF,
    That did not fix the problem. But it did erase the connection string settings

    Does anyone know the correct way to set the connection string?

    CheapEnergy Guest

  5. #4

    Default Re: CFMX7 & informix Date conversion woes

    In case others face this problem , here is what I had to do:

    Delete the data source in cold fusion administrator as cold fusion does not
    retain connection string parameters after a restart.
    Recreate the data source in Cold Fusion Administrator, and specify
    DBDate=MDY4 or the format you need.
    Voila ! it works.


    CheapEnergy 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