Invalid datetime format

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

  1. #1

    Default Invalid datetime format

    After upgrading from CF4 to CFMX7 we are getting this error on any date field
    that we're trying to pull in a query.

    Error Executing Database Query.
    Invalid datetime format.

    These pages and queries worked fine in 4, nothing has been changed in the
    source code or database sturcture.
    It is an Oracle database.

    Any help would be greatly appreciated.
    Becky


    RMK12345 Guest

  2. Similar Questions and Discussions

    1. #40340 [NEW]: Creating a DateTime object using a string that is invalid due to DST transition
      From: kal at kalunite dot net Operating system: Linux PHP version: 5.2.0 PHP Bug Type: Date/time related Bug description: ...
    2. #26320 [Opn->Csd]: strtotime() does not understand ISO6801 datetime format as used in XMLSchema
      ID: 26320 Updated by: hholzgra@php.net Reported By: hartmut@php.net -Status: Open +Status: Closed Bug Type: ...
    3. #26320 [NEW]: strtotime() does not understand ISO6801 datetime format as used in XMLSchema
      From: hartmut@php.net Operating system: PHP version: 5.0.0b2 (beta2) PHP Bug Type: Feature/Change Request Bug description: ...
    4. Invalid URI: The format of the URI could not be determined.
      We get this error every so often: Invalid URI: The format of the URI could not be determined. when calling a webservice any ideas?
    5. sqlerr -750 invalid distribution format
      Dear all, OS: Solaris 2.7 IDS: 7.31.UD5 Problem: SQL statement error number -750. Invalid distribution format found for sn I have some...
  3. #2

    Default Re: Invalid datetime format

    use the createodbcdate function and you'll never have to worry about date formats.
    Dan Bracuk Guest

  4. #3

    Default Re: Invalid datetime format

    How would the createODBCdate function help in this query?

    SELECT A.adminID, S.lName, S.fName,
    MAX(a.reqdate) as reqdate,
    MAX(H.accDate) as lastAcc
    FROM #theOwner#ML_ssoadmin A, #theOwner#ML_student S, #theOwner#ML_hits H
    WHERE A.adminID = S.sso AND A.adminID = H.sso(+)
    GROUP BY A.adminID, S.lName, S.fName
    ORDER BY S.lName, S.fName

    I have discovered that I'm getting the error on queries that have nulls in a
    date field.

    RMK12345 Guest

  5. #4

    Default Re: Invalid datetime format

    Found the fix!!!

    We were using the ODBC drivers to connect to the Oracle db.
    We changed to connecting with the thin client and it works now, null date
    fields and all!

    I hope this helps someone out there.

    RMK12345 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