Date converson for JDBC

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

  1. #1

    Default Date converson for JDBC

    my site was just moved to MX 6.1 and the system is complaining it can't convert
    the date for insertion into a SQL Server 7 "short date" field. I know JDBC
    doesn't like the ODBC date format but nothing I try is accepted. Must the CF
    Administrator change an attribute on the server? Thanks for any help!

    schep Guest

  2. Similar Questions and Discussions

    1. CFMX and Oracle 10G JDBC no longer retrieves timestampwith date
      I'm running CFMX with Oracle 10g client loaded My data source is Other; JDBC URL: jdbc: oracle: oci:@TMS; Driver Class: oracle.jdbc.OracleDriver...
    2. JSObject returns wrong date. How can Iextract correct date from digital signature?
      I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and...
    3. #39245 [NEW]: date function generate wrong date with 1162083600 timestamp
      From: lohner at aldea dot hu Operating system: Linux PHP version: 5.1.6 PHP Bug Type: Date/time related Bug description: ...
    4. CFMX and Oracle 10G JDBC no longer retrievestimestamp with date
      I am using ColdFusion 7 are you using 6.1?
  3. #2

    Default Re: Date converson for JDBC

    You could use the SQL Server getdate() function instead of CF's #now()#
    function, but if you really want or need to use #now()#, you might just CAST it
    to a smalldatetime datatype:

    INSERT INTO table (datecol)
    VALUES (CAST(#now()# AS smalldatetime))

    Phil

    paross1 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