Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
dthatsme #1
date & time in form field
I want to put the current date and time into a form field which will them be
submitted to a database. Is this possible? If so, what code should I use and
how? If not, any suggestions would be helpful. Thanks!!
dthatsme Guest
-
Get current date/time? Use them in hidden field?
I've got an app that works as a reception log for clients coming in our agency. The receptionist logs each client's name into our log database. ... -
Syntax error when trying to update date/time field
I am getting a MS Access ODBC Syntax error (missing operator) in query expression '2006-01-05 09:17:01.0' when I try to execute an update query. On... -
Date/Time field default values!
I'm creating a CF page that keeps track of dates/time of things. I have all my Date/Time fields set-up as Date/Time in access and I use... -
date/time field from access 2000 db getting -1 in textbox on form
I am stuck in using Access 2000 with on Windows 2000 server. I get a negitive 1 for a value. My code $DB_Conn = new... -
Separated date and time or one datetime field
Hi all, I am learning php+mysql and am trying to set up a log database. I wonder if it is better to have 2 different columns for date and time... -
Latino #2
Re: date & time in form field
It is possible: This will submit the current date and time, no formatting,
once added in your datebase, you will need to use
#DateFormat(myDate,'yyyy/mm/dd/')# and #TimeFormat(hh:mmtt)# to format your
date like: 2005/03/09 12:12pm <input type='text' name='myDate' value='#Now#'>
Latino Guest
-
dthatsme #3
Re: date & time in form field
Originally posted by: Latino
you will need to use #DateFormat(myDate,'yyyy/mm/dd/')# and #TimeFormat(hh:mmtt)#
Where do I put this?
And won't I need to define #now# somewhere?
dthatsme Guest
-
Mike Yang #4
Re: date & time in form field
#now# is a system thing, you don't need to define it. Everytime your code excute it, it will return the current date and time to where ever you put it.
Mike Yang Guest
-
Latino #5
Re: date & time in form field
My mistake:
I meant #now()#
[url]http://www.tecito.com[/url]
Latino Guest



Reply With Quote

