[thelist] CF Timestamp in a hidden input
Minh Lee Goon
v7ac at sdsumus.sdstate.edu
Wed Jul 19 15:17:42 CDT 2000
I have been stumped... not the first time. I'd like to pass the current
date and time in a hidden field to my db. Here's what I have:
<cfset date="#DateFormat(Now(), "m/d/yyyy")#">
<cfset time="#TimeFormat(Now(), "h:m:s tt")#">
<cfoutput>
<input type="Hidden" name="Timestamp" value="#date# #time#">
</cfoutput>
When I view source, I see:
<input type="Hidden" name="Timestamp" value="7/19/2000 2:50:16 PM">
But when the form is submitted, only the date portion is passed onto the
db. Why is that?
Help, please?
</ml>
More information about the thelist
mailing list