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

  1. #1

    Default Dates & SQL

    In my CF form I have created a date object using #DateFormat(Now(),"MM/DD/YY")#
    which displays the date as: 07/29/05.

    When the date is inserted into a Date/Time Field in a SQL table and I view
    the resulting entry in the table looks like: 7/29/2005.

    When I query and return the data field (#FIELD#) from the DB it displays as:
    2005-07-29 00:00:00.0

    All I want to do is to display the date as: 07/29/05
    Can I format the output... or is there something else that I should be doing
    to the input of the date...?

    Thanks !

    smokin_joe Guest

  2. Similar Questions and Discussions

    1. Between Dates
      I am trying to query an online access database and return records that have occurred between dates. I am using another query which does work to...
    2. ASP/VBS Dates Between Dates
      I'm trying to filter records depending on 2 dates requested from the querystring MMColParam1 (startdate) and MMColParam2 (enddate), i.e. a list...
    3. Dates again
      Hello all I'm having trouble getting iis to understand the UK format of dates ASP off a MS Access database I have the following query:...
    4. Dates
      Thanks to all those who replied. I ended up doing some research myself and found a good date module at...
    5. Help with Dates please
      Hi, In a SQL table I have a field named departure and a date in inserted in it. What is the exact syntax to get only records with a future date...
  3. #2

    Default Re: Dates & SQL

    You will need to reformat the output #DateFormat(myvariable, "mm/dd/yyyy")#

    rmorgan 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