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

  1. #1

    Default date type in MySQL

    i store date in a mysql database, the data type is DATE in mysql which store
    the date in the format yyyy-mm-dd if I run a query with ColdFusion it will
    return that data as a time stamp. I don't understand why, for example {ts
    1942-10-01 00:00:00'} why is ColdFusion change the data, this same data is
    stored as 1942-10-01 in MySQL. Does ColdFusion some how know the data type
    MySQL is using to store the data?

    wfears Guest

  2. Similar Questions and Discussions

    1. Type mismatch in Date
      Hi! I have a problem with my vbscript code... my database is a access 2000 db. here is the code Im running: ...
    2. PHP Date into MySQL
      Hi, I have the following script that is installed to obtain the date 7 days into the future and display 1 weeks worth of dates (minus Sunday). I...
    3. Consuming asp.net web service with arguments (of type Date)
      Here is my problem: Would like to consume web services (ASP.NET in IIS) from within Flash MX 2004. The consumption of all web services work fine,...
    4. php and mssql 's date type
      hi, I fetch a row from an MSSQL db with a field that's of type date. I'm returned i.e. Oct 15 2003 12:00AM. code: $test =...
    5. Date type
      Use this format for the datestring: 'yyyymmdd' No spaces, slashes, dashes etc. and it will never get confused. -- Andrew J. Kelly SQL...
  3. #2

    Default Re: date type in MySQL

    I can see your point. Alas, we have to live with that. Same thing as the English
    writing 0.05 and the French 0,05. MySQL, MS SQL, Oracle,
    Coldfusion, etc. each has its own preferred default way of storing dates and
    times. That is why there are so many formatting functions for dates and times.



    BKBK 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