Coldfusion Help - CurrentDateTime()

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

  1. #1

    Default Coldfusion Help - CurrentDateTime()

    The error I am getting is: The value "CurrentDateTime()" could not be converted
    to a date. I have attached the code from the line the error was generated in
    and then the code from the referrer page. Anyone have any ideas? I could use
    the help. Thanks.

    FROM THE FIRST PAGE
    <CFINSERT datasource="#DSN#" tableName="Messages">

    FROM THE SECOND PAGE
    <FORM ACTION="Insert_Reply.cfm" METHOD=POST>
    <INPUT TYPE="hidden" NAME="Posted" VALUE="CurrentDateTime()">

    djashi Guest

  2. Similar Questions and Discussions

    1. Running ColdFusion 5.0 and ColdFusion 6.1 concurrently
      Hi, this is my first post on this forum, I have tried looking but could not find a post that discussed my problem. I am wondering if it is possible...
    2. How to call a coldfusion function defined in other coldfusion file??
      inside a.cfm, it has code fragment: <cfloop> <cfinclude template="b.cfm"> </cfloop> inside b.cfm, it has code fragment: ...
    3. ColdFusion MX 7.1
      Installed on Server 2003, getting this error whenever the Coldfusion ODBC Server Service starts up: Event Type: Warning Event Source: Service...
    4. COLDFUSION ?
      Someone explain this to me in English ? Wot is coldfusion realy used for ?
  3. #2

    Default Re: Coldfusion Help - CurrentDateTime()

    Should be :

    <CFOUTPUT>
    <INPUT TYPE="hidden" NAME="Posted" VALUE="#CurrentDateTime()#">
    </CFOUTPUT>

    Regards
    Sojovi 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