Inserting Date and Time Issues
Hi All,
I have a very simple select query as follows... UPLOAD_DATE is held in table1 in the following format: 23/01/2012 13:04:36
<cfquery name="test" datasource="test">
SELECT UPLOAD_DATE
FROM TABLE1
</cfquery>
and I loop around the above query to insert into another table...
<cfloop query="test">
<cfquery name="make_tfer2" datasource="test">
INSERT INTO TABLE2
(UPLOAD_DATE)
VALUES
(#test.UPLOAD_DATE#)
</cfloop>
</cfloop>
But, when I insert into table2 it inserts the date as: 23/01/2012 .... How do I correct this code so I can insert the date as: 23/01/2012 13:04:36 ????
